[javascript] Get value from input (AngularJS)

I have the following inputs and need their values:

<input type="hidden" ng-model="movie" value="harry_potter"/>
<input type="text" ng-model="year" value="2000"/>

What can I do to get the value of each input?

This question is related to javascript angularjs

The answer is

If you want to get values in Javascript on frontend, you can use the native way to do it by using :


Where "movie" is the name of your input <input type="text" name="movie">

If you want to get it on angular.js controller, you can use;


Similar questions with javascript tag:

Similar questions with angularjs tag: