1.angular//Error when running the program Error: [$injector:unpr] Unknown provider: uniqueFilterProvider <- uniqueFilter
2. Related code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
|
customFilters.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
It should be a problem with the filter. I just started learning and can’t find out what’s wrong. 0 0 Where is the master?
某草草2017-05-15 17:14:17
Does your sportsStore have dependency injection of customFilters?
Or you can try changing customFilters to sportsStore first
我想大声告诉你2017-05-15 17:14:17
1 2 3 4 |
|
You create the sportsStore module first, and then introduce controllers/sportsStore.js later.
In the sportsStore.js file, angular.module("customFilters",[])
修改为angular.module("customFilters")
, because the sportsStore module has already been created, there is no need to recreate it