AngularJs Directives Intro
home
Run
screen_rotation
fullscreen
cloud_download
<!DOCTYPE html> <html lang="en"> <head> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script> </head> <body> <div ng-app="" ng-init="myArr=['First Item','Second Item']" > <p><input type='text' name='firstItem' ng-model= 'myArr[0]'></p> <p><input type='text' name='secondItem' ng-model= 'myArr[1]'></p> <p> {{myArr[0] + " , " +myArr[1]}}</p> </div> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script> </head> <body> <div ng-app="" ng-init="myArr=['First Item','Second Item']" > <p><input type='text' name='firstItem' ng-model= 'myArr[0]'></p> <p><input type='text' name='secondItem' ng-model= 'myArr[1]'></p> <p> {{myArr[0] + " , " +myArr[1]}}</p> </div> </body> </html>
Copyrights@tutorialsplane.com