Go Back

Creating Modules in Angular JS | Simple | Easy

views 208 Comments 0 24-Jun-2018


The creating module in Angular Js is quite easy. Here we are going to discuss the creation of modules in Angular JS. The code is shown below.


As we can see the creation of modules in Angular JS is very easy.
We have to use an object named angular which is created in the browser when angular in starting.
And with the help of angular object we have to call a predefined function of Angular JS which is module().
In this function, we have to pass two parameters,
1. module name
2. dependency modules

After creating module we have to call it in body tag
After executing this script in the browser we will get the output like this.


Now we have seen input script and output also
Still, you have any doubt or any suggestions then please mention in comment box.

Thanks for reading the post.






Your Reaction about this article...







Write your Comment



Name *

Email *

Comment *

Website (Optional)


Comments / Suggestions (0)