Angular JS modules means : An AngularJS module defines an application. The module is a container for the different parts of an application like controller, services, filters, directives etc. The module is a container for the application controllers. Controllers always belong to a module. Example Here we have a module named “MyApp” and controller for this module is… Read More »
Below is a simple function to implement this.
The following code helps you to do this. Save the following code as am .mxml file The html file start.html