First step is -install Node (from https://nodejs.org/en)
after install latest stable node, check node version as: node -v
install angular/cli, which will help to create boiler plate code (basic structure). It is command line interface, generate new node project with it.
npm i -g @angular/cli
to check installed version ng --version
(Navigate to path where you want to create Angular project.
Run command: npm init
this will walk through creating a package.json file)
this will walk through creating a package.json file)
-------------------------------------------------------------------
Create new angular project:
go to path where you want to create new project. On cmd prompt run command asp
ng new myApp (name of project/application)
Webpack- a tool that creates bundles for javascript code and stylesheets and injects those bundles into index.html at run-time.
Generate component
ng g component abc --type=component
-------------------------------------------------------------------
Component Lifecycle Hook
Comments
Post a Comment