wpbest / Angular-Reference

The Angular Reference App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Angular-Reference

The Angular Reference App (ngref)

This project was generated with Angular CLI version 8.1.0.

Documentation

Node.js

Angular

AngularCLI

RxJS

Install the Angular CLI

In order to get started with Angular development, Node.js and the Angular CLI is needed. To install the Angular CLI use the following command in the terminal window:

$ npm install -g @angular/cli

Generate Code scaffolding

ng new command switches used

--style=[css | scss | less | sass | styl]

The style option specifies what CSS preprocessor is used in building the project. the options are: css, scss, less, sass, styl.

--routing

The routing option generates a file app-routing.module.ts file.

--enable-ivy

The enable-ivy option enables the next generation renderer.

--skip-install

This skip-install option disables the npm install after code generation.

--skip-git

Angular CLI Command

ng new ngref --routing --style scss --enable-ivy --skip-install --skip-git

ng commands

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

About

The Angular Reference App

License:MIT License


Languages

Language:TypeScript 75.6%Language:JavaScript 18.7%Language:HTML 4.9%Language:CSS 0.8%