Problems arise when angular.js introduces third-party modules.
習慣沉默
習慣沉默 2017-05-15 17:02:08
0
3
559

I just wanted to introduce a third-party module ngMessages, but I used bower install as written in the installation instructions. The method downloads the file into bowercomponents, then introduces the path into the index.html file, then injects module dependencies, and then writes statements. However, when I restart the website with grunt, the entire website only has the background color, and other Nothing was loaded, and there was no information in the terminal. Then I deleted the steps I had done bit by bit (commented out the code), and then restarted the website. Then it was still like this. What was the problem? , the steps should be completed! And how do I find the error when there is a problem with loading the website? I am a newbie and have no clue at all! Ask God...
!

習慣沉默
習慣沉默

reply all(3)
伊谢尔伦

The error is obvious, what is that $browser.addPollFnwrong, what the hell is this

左手右手慢动作

Either the file path is wrong, network里看看到底引入成功没,再就是引入顺序问题,放在angular.jsbehind, or this method really doesn’t exist. . .

大家讲道理

At first, as leftstick said, it was caused by inconsistent versions of the Angular module. However, I deleted the ngMessages module I loaded and commented out the code, but it still didn’t work! So I upgraded bower and it worked

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template