官网API:https://docs.angularjs.org/api @H_301_2@ 官网 docs: https://angular.io/docs @H_301_2@ 对应的中文文档https://angular.cn/docs
buglist
1.cant find module @angular/animations/brower
$ npm install @angular/animations@latest –save
2.”/animations/browser”’ has no exported member ‘ɵDomAnimationEngine’ @H_301_2@ BrowserAnimationModule模块的版本问题,@angular/animations 4.1.3没有问题(这里也不是很固定,打开 package.json和其他版本匹配起来就好)
$ npm install @angular/animations@4.1.3 –save
3.Error: No provider for InjectionToken DocumentToken! @H_301_2@ 4. cant find module @angular/common/http @H_301_2@ 只需要重新安装@angular/common即可,即:
$ npm install –save @angular/common
5.跨域请求问题: @H_301_2@ Cross-origin redirection to ** denied by Cross-Origin Resource Sharing policy: Origin http://localhost:8101 is not allowed by Access-Control-Allow-Origin. @H_301_2@ 6. Failed to load resource: Preflight response is not successful @H_301_2@