MyArchiBook

Posts Tagged ‘angular

Quick Notes on Angular: Difference between angular.module(“app”) and angular.module(“app”,[])

leave a comment »

  • angular.module(“app”,[]) – helps define a new module called “app” . The array will contain different other  modules that this app-module depends on.
  • angular.module(“app”) – helps to get the reference of  the already created “app” module.

 

Reference:

https://docs.angularjs.org/guide/module

Advertisements

Written by thangaveluaishwarya

May 19, 2015 at 12:35 PM