Monday, January 13, 2014

bolting a controller onto an AngularJS application

If...

var app = angular.module('myApp', []);

 
 

...was upstream of the app.config stuff here, then one could add a controller to the application like so:

app.controller('fooCtrl',
   function (
etc...

No comments:

Post a Comment