mattlewis92 / angular-bootstrap-calendar

A port of the bootstrap calendar widget to AngularJS (no jQuery required!)
https://mattlewis92.github.io/angular-bootstrap-calendar/
MIT License
798 stars 367 forks source link

configure project in one driver #21

Closed newmesiss closed 9 years ago

newmesiss commented 9 years ago

I have the following questions, I am working on the basis of the code sample project, I am modifying main.js and I want to leave all the drivers view this file so set as follows

var app = angular.module('mwl.calendar', ['ui.bootstrap','firebase']).constant('moment', window.moment);

  app.controller('MainCtrl', ['$firebase' ,'$scope',
        function ($firebase,$scope, $modal, moment) {

    var currentYear = moment().year();
    var currentMonth = moment().month();

but I do not get to run the project now

image

mattlewis92 commented 9 years ago

You don't appear to have moment.js installed: http://momentjs.com/

newmesiss commented 9 years ago

estoy utilizando el mismo proyecto angular-bootstrap-calendar, y lo unico que ise fue cambiar en el main,js

app.controller('MainCtrl',['$scope','$firebase', function ($scope, $modal, moment) {

    var currentYear = moment().year();
    var currentMonth = moment().month();

y en app.js

var app = angular.module('mwl.calendar', [
    'ui.bootstrap','firebase'
  ]);