To jest stara wersja strony!
Angular
Instalacja
Angular wymaga Node.js: https://nodejs.org/en/download/prebuilt-installer/current
Uruchamiając npm na Windows otrzymamy błąd: npm : File C:\Program Files\nodejs\npm.ps1 cannot be loaded because running scripts is disabled on this system.
Uruchomienie polecenia
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
w konsoli powinno wyeliminować problem.
Angular instalujemy następującym poleceniem w konsoli:
npm install -g @angular/cli
Nowy projekt
- Utworzenie projektu
ng new project_name
- Uruchomienie serwera deweloperskiego
W folderze głównym projektu:
npm start
Nowy komponent
ng generate component my_component
lub wersja skrócona:
ng g c my_component