ng new project_name:创建一个新的angular项目,名字为project_name
ng install -skip
ng serve:启动angular项目
ng g(generate) component componentName 新建一个组件名为componentName的组件
ng g(generate)service serviceName -m app.module : 新建介个名叫serviceName的服务,并将其注册在app.mudole中。
ng new project_name:创建一个新的angular项目,名字为project_name
ng install -skip
ng serve:启动angular项目
ng g(generate) component componentName 新建一个组件名为componentName的组件
ng g(generate)service serviceName -m app.module : 新建介个名叫serviceName的服务,并将其注册在app.mudole中。