You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Questions:

The angluar tips page shows this code...

var app = angular.module('beta', [], function($routeProvider, $locationProvider) {


  ...
{color:#dddddd}});

Does this imply that a "module" is an angular application?  

The docs say you can have more then one app per page.  Do all the routers then get called with the GET url?

Am i correct that app.factory('foo",...)  sets it so that a controller definition can be of the form func(foo) and will get

a copy of the foo service in foo?

If services are bound to modules, how can multiple module share a common service?

  • No labels