Sharing Top Content from the Angular-sphere.

Angular From Basic To Expert

#Angular From Basic To Expert - Day 03 via @CsharpCorner  #Angularjs

  • Module contains Controllers, services, filters, directories etc. for an Angular JS application.
  • But generally in the large enterprise application the controllers exist in the external js files and add that file in the view with the script tag.
  • But generally in the large enterprise application the controllers exist in the external js files and add that file in the view with the script tag.
  • Find the attachment for the application, creating a controller in the external JS file, and adding that file in the HTML View.
  • In this article, we have covered Module and defined ng-module, Model used ng-model and created and defined Controller in AngularJS and we have seen how to create them and how to use them with the examples.

In the previous articles – AngularJS from basic to expert Day One and Day Two, we have learned what AngularJS is, its basics, and usage of AngularJS expression and directives. Here we will learn Models, Modules, and Controllers in AngularJS.

In the previous articles, AngularJS from basic to expert Day One and Day Two, we have learned what AngularJS is. We saw some basics of AngularJS, learned AngularJS expression and directives, and used AngularJS in our demo application.

You can check the previous articles here –

In this article of AngularJS from basic to expert day three, we will learn the following.

So, I will explore them one by one and also, will continue with our AngularJS demo application which we have used in the previous articles.

Module functions as a container in the Angular JS application which contains different parts of the application. Module contains Controllers, services, filters, directories etc. for an Angular JS application. Also, we can say that a module defines an Angular JS application. As we have seen that ng-app define an Angular JS application and we used ng-app in our previous demo, but we used ng-app=” “. Now, we will create Module and use that with ng-app.

The angular.module method is used to create a module in AngularJS. Now, we can use angApp to create different things like controllers, services etc.(That we will see ahead). Here above, in the script tag, we have created a module by using angular.module method and named as MyERPDemoApp, and then, we used that in ng-app directive. Here above, in the script tag, we have…

Angular From Basic To Expert