Study and R&D on Angular
0
stars
0
forks
source link
Angular Code camp
Study and R&D on Angular
Some angular commands
- ng new my-app: create a new project named "my-app"
- cd my-app : change directory to the newly created folder
- ng serve : start the development server for this app, with live reload (--open)
- ng build --prod : generate a production ready bundle of your application in dist/ folder
- ng test : execute the unit tests via Karma
- ng e2e : execute the end-to-end tests via Protractor.
- ng lint : run tslint on the application (for code quality checks).
- ng xi18n : extract i18n messages from source code.
- npm install -g @angular/cli : Install the CLI using the npm package manager
- npm install --save bootstrap : Install bootsrap
Angular CLI Commands
- ng new my-project : Create a new Angular application called 'my-project'
- ng version : Display the current Angular CLI version along with the installed NodeJS and NPM versions
- ng help : List all available Angular CLI commands
- ng serve : command to build an application and serve it locally
- ng generate component Header : create a component name Header
- ng generate directive search-box : create a directive name search-box
- ng generate class math : create a class name math
- ng generate pipe currency : create a pipe name currency
- ng generate service weather : create a service name weather
- ng generate module features : create a module name features
References