Error injecting more than one dependency into angular.module [closed]

-1

I have the following module:

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

But I get an error putting another dependency. Ex:

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

How am I injecting correctly?

This is the error:

  

[$ injector: modulerr]    link $ injector / modulerr? p0 = appEcommerce & p1 =% 5B% 24injector% 3Amodulerr% 5D% 20http% 3A% 2F% 2Ferrors.angularjs.org% 2F1.5.7% 2F% 24injector% 2Fmodulerr% 3Fp0% 3Dui.mask% 26p1

    
asked by anonymous 02.07.2017 / 00:18

1 answer

1

Problem solved.

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

    
02.07.2017 / 00:52