-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?– mercador
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.
– Henrique