2017-06-28 33 views
0

Angular cli - 當我更改組件中的代碼時,應用程序刷新但沒有更改。當我停下來再次運行服務,然後我看到我所做的更改。Angular cli v1.0.4 - 當我更改組件中的代碼時,它不反映在瀏覽器上

節點v6.10.2 NPM v4.6.1 OS - win8.1

的package.json

"dependencies": { 

    "@angular/common": "^4.0.0", 
    "@angular/compiler": "^4.0.0", 
    "@angular/core": "^4.0.0", 
    "@angular/forms": "^4.0.0", 
    "@angular/http": "^4.0.0", 
    "@angular/platform-browser": "^4.0.0", 
    "@angular/platform-browser-dynamic": "^4.0.0", 
    "@angular/router": "^4.0.0", 
    "@ng-bootstrap/ng-bootstrap": "^1.0.0-alpha.26", 
    "bootstrap": "next", 
    "core-js": "^2.4.1", 
    "rxjs": "^5.1.0", 
    "zone.js": "^0.8.4" 
    }, 
"devDependencies": { 

    "@angular/cli": "1.0.4", 
    "@angular/compiler-cli": "^4.0.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.1.1", 
    "karma-cli": "~1.0.1", 
    "karma-coverage-istanbul-reporter": "^0.2.0", 
    "karma-jasmine": "~1.1.0", 
    "karma-jasmine-html-reporter": "^0.2.2", 
    "protractor": "~5.1.0", 
    "ts-node": "~2.0.0", 
    "tslint": "~4.5.0", 
    "typescript": "~2.2.0" 
} 
+0

'納克服務--hmr ' –

+0

@Slava Utesinov,謝謝。有用。 –

回答

0

由光榮Utesinov納克服務--hmr

相關問題