第一部分: (应用的“外壳”) 1.新建项目: ng new mytest 2.进入项目目录,并启动这个应用. cd mytest ng serve --open 3.添加一个标题 打开 app.component.ts title = 'Tour of Heroes'; 打开 app.component.html <h1>{{title}}</h1> 第二部分: (英雄编辑器) 1.创建组件 myHeros ng generate comp…
/* Dynamic tree generation and placement in a night-time scene Demonstrates: How to create a height map and splat map from scratch to use for realistic terrain How to use fratacl algorithms to create a custom tree-generating geometry primitive How to…
1.官网中在导入“of”关键字时的引用为: import { Observable, of } from 'rxjs'; 应该改为: import { Observable } from 'rxjs/Observable'; import { of } from 'rxjs/observable/of': 2.在第8节的HTTP中,需要导入angular2-in-memory-web-api包,此时系统会默认导入最新包,为0.6.0: 但是此时Angular中@angular…