This project was generated with Angular CLI version 7.3.5.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
#Lection 2 angular deep dive
npm i -g rxjs@latest npm i -g rxjs-tslint npm i -g zone@latest npm i -g @angular/cli@latest
##problems with angular
npm install --save--dev @angular/cli@latest npm update @angular/cli
npm i --save bootstrap@latest
..angular.json "node_modules/bootstrap/dist/css/bootstrap.min.css",
##template
@Component({ selector: 'app-root', template:
, styleUrls: ['./app.component.css'] })
создайте три компонента и один вложенный компонент ангуляра, для лабораторной работы
e.g. ng g c burger ng g c navbar ng g c maintext
npm install --save angular-in-memory-web-api
ng g s backend
import {InMemoryDbService} from 'angular-in-memory-web-api'
ng g s contact