The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

545534 (1) [Avatar] Offline
#1
Hi folks,

Send ng-model content to controller in AngularJS after the page is loaded

This is the input form in html:

<span>
Max:</br>
<input ng-model="maxValue"></br>
</span>
If I want to show it on the page it works if it is done like this:

This is max:{{maxValue}}
The problem is that I don't have any idea about how to send it to the controller for later use.


In my particular case I load a page with a chart and after the page is loaded I want to be able to change the max value of y-axis of the chart by introducing the value with ng-model.

Any suggestions?

Thank you