1.angular快速开始 标记 告诉AngularJS处理整个HTML页并引导应用: 指令把输入域的值绑定到应用程序变量 yourname 指令把应用程序变量 yourname 绑定到某个段落的 innerHTML 指令初始化 AngularJS 应用程序变量。 例子 <!doctype html ...
分类:
Web程序 时间:
2018-02-22 10:54:12
阅读次数:
192
谈及如今欣欣向荣的前端圈,不仅有各类框架百花齐放,如Vue, React, Angular等等,就打包工具而言,发展也是如火如荼,百家争鸣;从早期的王者Browserify, Grunt,到后来赢得宝座的 Gulp, 以及独树一帜的 fis3, 以及下一代打包神器 Rollup ;在 browser ...
分类:
Web程序 时间:
2018-02-21 21:07:38
阅读次数:
284
1 创建模块失败 1.1 问题描述 利用 ng g m 模块名 创建新模块时出错 1.2 错误信息 1.3 问题原因 angular-cli 版本出现问题 1.4 解决办法 卸载掉之前使用的 angular-cli , 在重新安装angular-cli 2 angular-cli 名称问题 2.1 ...
分类:
其他好文 时间:
2018-02-21 17:46:57
阅读次数:
178
如图: 解决方法: 进入项目目录下执行以下代码 ...
分类:
Web程序 时间:
2018-02-17 18:24:29
阅读次数:
390
In a proper unit test we want to isolate external dependencies as much as possible to guarantee a reliable test outcome. Http calls represent such ext ...
分类:
Web程序 时间:
2018-02-14 21:56:37
阅读次数:
273
In some cases your application might need to upload large amounts of data, such as files. Obviously for a good UX we should provide the user some feed ...
分类:
数据库 时间:
2018-02-14 21:32:56
阅读次数:
261
By default the response body doesn’t contain all the data that might be needed in your app. Your server might return some special header which you hav ...
分类:
Web程序 时间:
2018-02-14 21:32:17
阅读次数:
345
Besides sending (or requesting) the actual data to the server API, there’s also often the need to send further metadata that helps the server to corre ...
分类:
Web程序 时间:
2018-02-14 21:30:39
阅读次数:
240
By default the new Angular Http client (introduced in v4.3.1) uses JSON as the data format for communicating with the backend API. However, there migh ...
分类:
Web程序 时间:
2018-02-14 21:30:25
阅读次数:
282
Obviously in a real world application we do not only fetch data from the backend, but we also send data to be stored permanently on the server side. T ...
分类:
Web程序 时间:
2018-02-14 21:06:17
阅读次数:
214