Angularjs ng-init
home
Run
screen_rotation
fullscreen
cloud_download
navigate_before
<!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="a=10;b=15"> <p>Multiple = {{a*b}} </p> <p>Division = {{a/b}} </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="a=10;b=15"> <p>Multiple = {{a*b}} </p> <p>Division = {{a/b}} </p> </div> </body> </html>
Copyrights@tutorialsplane.com