Monday, June 19, 2017

Angular Js


Angular js is mainly used to build single page application . It is based on MVC architecture.
  1. model The form fields act as model , we need to use ng-model attribute to specify the model name.
  2. view The HTML page is the view , which is being displayed to the user
  3. controller We can create a JavaScript function which will be the controller


There are 3 most important components of angular js.
  1. application
  2. controller
  3. service

Common Errors:
Error: [$injector:unpr] Unknown provider: myServiceProvider
 When you see this error you need to check if have my service defined for your application.
Click on the buttons inside the tabbed menu:
angular.module("home",home); var home=function (){ }

No comments:

Post a Comment

ec2-user@ec2 Permission denied