访问angular.js控制器中的输入值(预填充)

时间:2016-06-10 08:05:32

标签: javascript angularjs ionic-framework

我有index.html个文件,我在其中自动填充input text field。我想从角度应用程序中的控制器访问此预填充值。 怎么做?

的index.html

//Has included the app and controller here
<input type="text" id="phoneNUmber" name="phoneNumber" ng-model="datumPhoneNumber">

app.js

alert($scope.datumPhoneNumber)

0 个答案:

没有答案