2.0 First Application
First Applications
Let’s create new application using Command Line Interface of
Angular.
Decide directory to create an application and open it in
visual studio core.
Open terminal using Ctrl + `.
Now type following command to create new application.
After execute this command you may see following command in
case of your are using angular first time in your system.
ng : File
C:\Users\bsqua\AppData\Roaming\npm\ng.ps1 cannot be loaded because running
scripts is disabled on this system.
To solve this issue following these steps,
1.
Open PowerShell as an administrator.
1.
Type the following command: Set-ExecutionPolicy
RemoteSigned
1. Press Enter and then type "Y" to confirm the change.
It will ask you the 2 questions,
1) Would you like to add Angular routing? Yes
2) Which stylesheet format would you like to use? CSS
It will take some time to install Node Module folder, folder
which contains all support lib for your application to execute with all
features.
Comments
Post a Comment