MyArchiBook

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: