Bahagian hadapan - tutorial laman web rasmi sudut No. 7 HTTP, angular-in-memory-web-api tidak dapat ditemui
过去多啦不再A梦
过去多啦不再A梦 2017-05-15 17:13:13
0
2
712

Semasa saya mempelajari tutorial http ketujuh di tapak web Cina Angula, saya tidak menemui antara muka API, saya mencari staroverflow dan google tetapi tidak berjaya...

pakej.json

{
  "name": "test1",
  "version": "0.0.0",
  "license": "MIT",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/common": "^2.4.0",
    "@angular/compiler": "^2.4.0",
    "@angular/core": "^2.4.0",
    "@angular/forms": "^2.4.0",
    "@angular/http": "^2.4.0",
    "@angular/platform-browser": "^2.4.0",
    "@angular/platform-browser-dynamic": "^2.4.0",
    "@angular/router": "^3.4.0",
    "core-js": "^2.4.1",
    "rxjs": "^5.1.0",
    "zone.js": "^0.7.6"
  },
  "devDependencies": {
    "@angular/cli": "1.0.0-rc.2",
    "@angular/compiler-cli": "^2.4.0",
    "@types/jasmine": "2.5.38",
    "@types/node": "~6.0.60",
    "codelyzer": "~2.0.0",
    "jasmine-core": "~2.5.2",
    "jasmine-spec-reporter": "~3.2.0",
    "karma": "~1.4.1",
    "karma-chrome-launcher": "~2.0.0",
    "karma-cli": "~1.0.1",
    "karma-jasmine": "~1.1.0",
    "karma-jasmine-html-reporter": "^0.2.2",
    "karma-coverage-istanbul-reporter": "^0.2.0",
    "protractor": "~5.1.0",
    "ts-node": "~2.0.0",
    "tslint": "~4.5.0",
    "typescript": "~2.0.0"
  }
}

Ini ialah skrin ralat

Skrin ralat konsol

过去多啦不再A梦
过去多啦不再A梦

membalas semua(2)
左手右手慢动作
npm i --save angular2-in-memory-web-api
漂亮男人

Tanya dan jawab soalan anda sendiri

npm i angular-in-memory-web-api

Jika ini tiada, pasang ini, rujuk pautan

Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan