Error injecting more than one angular dependency.module

Asked

Viewed 65 times

-1

I have the following module:

var appEcommerce = angular.module("appEcommerce", [ 'ngRoute']);

But I get an error when placing another dependency. Ex:

var appEcommerce = angular.module("appEcommerce", [ 'ui.mask','ngRoute']);

The way I’m injecting is correct?

That is the mistake:

[$injector:modulerr] http://errors.angularjs.org/1.5.7/$injector/modulerr? P0=appEcommerce&p 1=%5B%24injector%3Amodulerr%5D%20http%3A%2F%2Ferrors.angularjs.org%2F1.5.7%2F%24injector%2Fmodulerr%3Fp0%3Dui.Mask%26p1

  • you installed the package ui-mask? using the Bower or npm?

  • I just discovered the problem, I had a view that was part of my appEcommerce module that was not importing the ui.masklibrary. I imported it and the problem was solved.

1 answer

1


Problem solved.

One of my views that used my appEcommerce module did not matter the ui.mask library. I imported it and the problem was fixed.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.