angular
基础知识整理
开水没有冬天
如果可以,我会珍惜
展开
-
angular组件通讯
父传子,使用Input父html:<div> component-communication works! <div> <button nz-button (click)="changeColor();">改变childColor的值</button> &原创 2019-02-15 17:15:25 · 121 阅读 · 0 评论 -
angular7.x-3项目
login页面布局完成后,需要调用接口:base-service放到项目中,添加依赖:AppCommon(又依赖session和base64)app/widget/script/session.ts:export class session { static set(key: string, value: any) { sessionStorage.setItem(key, JSO...原创 2019-03-26 19:03:06 · 408 阅读 · 0 评论 -
angular7.x-2项目启动
兼容cloud\src\polyfills.ts:关于一些polyfills的注释需要放开,这样才可以兼容!!!网站统计百度统计console的消除src\main.ts:if (environment.production) { enableProdMode(); window.console.log=function(){}; window.console...原创 2019-02-14 10:11:29 · 424 阅读 · 0 评论 -
angular7.x-1项目启动
$ node -vv8.11.2$ npm -v5.4.2$ ng v _ _ ____ _ ___ / \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _| / △ \ | '_ \ / _` | | | | |/ _`...原创 2019-01-30 16:33:58 · 902 阅读 · 0 评论