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
 
m
Line 1: Line 1:
== NPM (Node package manager) ==
 
  
=== Create new project ===
 
<syntaxhighlight lang="bash">
 
npm init
 
</syntaxhighlight>
 
 
=== Install package in project ===
 
<syntaxhighlight lang="bash">
 
npm install jquery
 
</syntaxhighlight>packages will be downloaded to node_modules folder
 
 
=== Install modules from existing project ===
 
<syntaxhighlight lang="bash">
 
npm install
 
</syntaxhighlight>
 
  
 
=== Install Angular ===
 
=== Install Angular ===

Revision as of 17:02, 30 April 2022


Install Angular

npm install -g @angular/cli

Create and run Angular application

ng new my-app
cd my-app
ng serve