i working on angular project, on local runs perfectly, when deploy divshot breaks, , throws 'unknown provider: iprovider <- i' error.
this link the: divshot development build
any advice appreciated.
it because angular resolves provider names literally converting function string , using parameter names. when deploy, minifying code. therefore looked mycoolservice
minified i
or a
or else.
you have ways solve it: 1. use array syntax 2. use ngannotate or else in build create array syntax you.
read part minification on https://docs.angularjs.org/tutorial/step_05
Comments
Post a Comment