Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constant vs Dependencies #79

Open
FredLackeyOfficial opened this issue Feb 17, 2016 · 0 comments
Open

Constant vs Dependencies #79

FredLackeyOfficial opened this issue Feb 17, 2016 · 0 comments

Comments

@FredLackeyOfficial
Copy link

In the "cc-bmean" demo (not sure about the others) why did you bring in toastr and moment as constants (in constants.js) rather than listing them in the module's dependencies list when it was declared?

/* global toastr:false, moment:false */
(function () {
    'use strict';

    angular
        .module('app.core')
        .constant('moment', moment)
        .constant('toastr', toastr);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant