Angle installation 2

0

I have a website ready, it is static. I would like to install Angular 2 on it. I installed the angle from the command npm install @angular/cli and tried to put the html, css, jquery files in it but I'm not getting it.

Can anyone explain how? Thanks!

    
asked by anonymous 27.03.2017 / 04:06

2 answers

3

First you need to do the global installation of the package using the

npm install -g @angular/cli

Then create an angled project with the

ng new "nome do app"

you can put your files in the src - app folder, always following the angular pattern that you can learn better in the start guide of the angular itself

link

    
19.05.2017 / 12:52
0

As the documentation itself explains you should use the

npm install -g @angular/cli

To access the command line tool that creates and manages angled projects. The reason for not working is that with the -g flag it indicates that you are installing the NPM package in global mode, that is, you will be able to use it by running ng [options] after running the installation. Without the flag you are installing the angle cli in your current folder and not the angle itself.

Follow the initial tutorial on Angular 2 to learn how to use the framework correctly.

Source: link

    
27.03.2017 / 05:38