I am trying to create the basic calendar with drag and drop in
$routeProvider. I am having problem with loading the controller "calendar
as vm" in to the child scope. Any help is appreciated.
Index.html:
<li ng-class="{ active: isActive('/calendar')}" ng-click=
"collapseNavbar()"><a href="#/calendar" >Calendar*</*a*></*li*>*
App.js:
when('/calendar', {
templateUrl: '/partials/calendar.html',
controller: 'CalendarCtrlas as vm'
}).
Controller.js:
conferenceApp.controllers.controller('CalendarCtrl', function ($log,
oauth2Provider, HTTP_ERRORS) {
*var* vm = *this*;
It fails to load the controller.
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.