- Hands-On Data Structures and Algorithms with JavaScript
- Kashyap Mukkamala
- 218字
- 2021-06-30 19:12:09
Creating an app using the CLI
Now, let's create the Angular application. We will create a new application for each example for the sake of clarity. You can club them into the same application if you feel comfortable. To create an Angular application using the CLI, run the following command in the Terminal:
ng new <project-name>
Replace project-name with the name of your project; if everything goes well, you should see something similar on your Terminal:
installing ng
create .editorconfig
create README.md
create src/app/app.component.css
create src/app/app.component.html
create src/app/app.component.spec.ts
create src/app/app.component.ts
create src/app/app.module.ts
create src/assets/.gitkeep
create src/environments/environment.prod.ts
create src/environments/environment.ts
create src/favicon.ico
create src/index.html
create src/main.ts
create src/polyfills.ts
create src/styles.css
create src/test.ts
create src/tsconfig.app.json
create src/tsconfig.spec.json
create src/typings.d.ts
create .angular-cli.json
create e2e/app.e2e-spec.ts
create e2e/app.po.ts
create e2e/tsconfig.e2e.json
create .gitignore
create karma.conf.js
create package.json
create protractor.conf.js
create tsconfig.json
create tslint.json
Installing packages for tooling via npm.
Installed packages for tooling via npm.
Project 'project-name' successfully created.
If you run into any issues, ensure that you have angular-cli installed as described earlier.
Before we write any code for this application, let's import the stack that we earlier created into the project. Since this is a helper component, I would like to group it along with other helper methods under the utils directory in the root of the application.
- Cocos2d Cross-Platform Game Development Cookbook(Second Edition)
- C語言程序設計習題解析與上機指導(第4版)
- Mastering phpMyAdmin 3.4 for Effective MySQL Management
- Python程序設計(第3版)
- 新手學Visual C# 2008程序設計
- Effective Python Penetration Testing
- Apache Mesos Essentials
- PySide GUI Application Development(Second Edition)
- 嚴密系統設計:方法、趨勢與挑戰
- INSTANT Django 1.5 Application Development Starter
- 快速入門與進階:Creo 4·0全實例精講
- 3ds Max印象 電視欄目包裝動畫與特效制作
- Mastering Elixir
- 計算機應用技能實訓教程
- ASP.NET開發寶典