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

checklist-model does not work when using ng-route #135

Closed
fhamarshi opened this issue May 17, 2016 · 2 comments
Closed

checklist-model does not work when using ng-route #135

fhamarshi opened this issue May 17, 2016 · 2 comments
Labels

Comments

@fhamarshi
Copy link

fhamarshi commented May 17, 2016

hello guys,
I was trying to use checklist-model in my app but I caught an error that I have figured out it was because of using ngRoute in the same app.

var mainMod = angular.module('MainApp', ['ngRoute'],['checklist-model']);

The error:

angular.min.js:6Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.2.24/$injector/modulerr?p0=MainApp&p1=Error%3…%20gc%20(http%3A%2F%2Flocalhost%2Ftest%2Ffiles%2Fangular.min.js%3A36%3A309)

If there is any solution for this I will be happy to know.

Thanks for your efforts

@fhamarshi
Copy link
Author

is supposed to be an array of all of your dependencies`
var mainMod = angular.module('MainApp', 'ngRoute'],['checklist-model']);

@beradrian
Copy link
Collaborator

beradrian commented Jul 5, 2016

You should use it like this

 var mainMod = angular.module('MainApp', ['ngRoute', 'checklist-model']);

You have two arguments - first the module name and second an array with dependencies - not three arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants