YMLearnWeb / angTutorial

Self learning Angular2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

angTutorial

Task one: GUID

  • How to use angular-in-memory-web-api
  • Understand the basic angular file structure and general angular2 command

Prerequisit: install node.js,npm, angular2

Technology

  • Build the new ng project like ng new Tut
  • Install the angular-in-memeory-web-api which is the an in-memory web api for Angular demos and tests that emulates CRUD operations over a RESTy API.
  • Generate new component: ng generate component one
  • Run ng-server to see how the work looks like in the browser in http://localhost:4200
  • Create stu-data.ts -fake data
  • Create stu.service.ts, the file is about the restful api operations
  • Import HttopModule,HttpClientModule,InMemoryWebApiModule in app.module

About

Self learning Angular2

License:MIT License


Languages

Language:TypeScript 80.7%Language:JavaScript 14.6%Language:HTML 4.0%Language:CSS 0.7%