随笔分类 - Angular
摘要:1.edit "start" of your package.json to look below 定义一个叫做start的新命令 如果不加参数port,默认端口4200 2.create a new file called proxy.conf.json in the root of the pr
阅读全文
摘要:绑定类型 绑定类型可以按照数据流的方向分为三类:从源到视图,从视图到源,以及双向序列 示例 <!-- Bind button disabled state to `isUnchanged` property --> <button [disabled]="isUnchanged">Save</but
阅读全文
摘要:安装Node 先去Node官网下载并安装Node.js Install the Angular CLI(安装Angular CLI) Create a new application(创建新项目) Serve the application(启动项目) Create the component(创建
阅读全文
摘要:双花括号{{}} 展示数据 title = 'Tour of Heroes'; myHero = 'Windstorm'; <h1>{{title}}</h1> <h2>My favorite hero is: {{myHero}}</h2> *ngFor 展示列表 heroes = ['Winds
阅读全文
摘要:双花括号{{}} <img src="{{heroImageUrl}}" style="height:30px"> <!-- "The sum of 1 + 1 is 2" --> <p>The sum of 1 + 1 is {{1 + 1}}</p> <!-- "The sum of 1 + 1
阅读全文