随笔分类 -  Angular学习之路,与君共勉

记录学习Angular2\4出现的问题解决办法
 
解决npm ERR! Please try running this command again as root/Administrator. 问题
摘要:win10下,使用npm 安装插件时报npm ERR! Please try running this command again as root/Administrator的错误, 解决方案:需要删除npmrc文件。(C:\Users\{账户}\下的.npmrc文件) 阅读全文
posted @ 2018-03-22 23:55 watchfree 阅读(4212) 评论(0) 推荐(1)
ionic3/4 使用NavController 返回两层的方式
摘要:ionic3/4 使用NavController 返回两层的方式: this.navCtrl.popTo(this.navCtrl.length() - 3); 阅读全文
posted @ 2018-03-16 10:41 watchfree 阅读(1647) 评论(1) 推荐(0)
Angular/cli 安装(windows环境)。
摘要:1.卸载先前安装的Angular/cli npm uninstall -g angular-clinpm uninstall --save-dev angular-clinpm uninstall -g @angular/cli 2..删除 C:\Users\lenovo\AppData\Roami 阅读全文
posted @ 2017-09-28 11:56 watchfree 阅读(6965) 评论(0) 推荐(0)
解决使用angular2路由后,页面刷新后报404错误。
摘要:点击路由链接跳转页面是正常的,但是当刷新页面时就出现了404错误。 解决方法如下: 在app.module.ts中添加import: 阅读全文
posted @ 2017-03-29 22:47 watchfree 阅读(2234) 评论(1) 推荐(1)