我有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)