Angular4 notes

http

test

  • Testing Angular 2 code with Jasmine, docs and Karma.
  • Coverage with Istanbul
  • End-to-end Angular code using Protractor. When debugging or first writing test suites, you may find it helpful to try out Protractor commands without starting up the entire test suite. You can do this with the element explorer.Protractor Interactive Mode here.
  • Tests reports with karma-tfs-reporter
  • Test coverage reports with karma-coverage
  • Unit tests single run: npm test, live mode (TDD style): npm run test-watch
  • End-to-End Tests (aka. e2e, integration)
#single run, in a tab, if not already running!
npm start
#in a new tab:
npm run webdriver-start
#in another new tab:
npm run e2e
#interactive mode:
npm run e2e-live

forms & validation

component inheritance

loading components dynamically

internationalization / localization

Angular CLI

npm install -g @angular/cli angular-cli typescript
ng new my-app
cd my-app
npm install
npm run start:dev /* package.json */
npm run watch -- --define eswenv=dev
webpack-dev-server --port=3000 --open
webpack --watch --progress  --profile
ng serve --open
ng generate component [name]
ng serve
npm run lite

Promise vs Observable

input debounce

PrimeNG

GitRepo, Get Started, dropdown showcase, & docs, theming, p-table

misc