Difference between revisions of "Angular"

From RHS Wiki
Jump to navigation Jump to search
(Created page with "== NPM (Node package manager) == === Create new project === <syntaxhighlight lang="bash"> npm init </syntaxhighlight> === Install package in project === <syntaxhighlight lan...")
Tag: visualeditor
(No difference)

Revision as of 17:01, 30 April 2022

NPM (Node package manager)

Create new project

npm init

Install package in project

npm install jquery

packages will be downloaded to node_modules folder

Install modules from existing project

npm install

Install Angular

npm install -g @angular/cli

Create and run Angular application

ng new my-app
cd my-app
ng serve