Skip to content

ng serve with --aot does not reload template changes #6347

@zmad5306

Description

@zmad5306

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

####Ubuntu 16.04 LTS
@angular/cli: 1.0.3
node: 7.10.0
os: linux x64 (Ubuntu 16.04 LTS)
@angular/common: 4.1.2
@angular/compiler: 4.1.2
@angular/core: 4.1.2
@angular/forms: 4.1.2
@angular/http: 4.1.2
@angular/platform-browser: 4.1.2
@angular/platform-browser-dynamic: 4.1.2
@angular/router: 4.1.2
@angular/cli: 1.0.3
@angular/compiler-cli: 4.1.2

####Windows 10 Home
@angular/cli: 1.0.2
node: 6.9.2
os: win32 x64

Repro steps.

ng new
ng serve --aot
modify app.component.html
save app.component.html

The log given by the failure.

Template change not shown by live reload in browser. Also if the browser is refreshed the template change is not shown. It appears a template only change is not causing a recompile even though the terminal output shows a build occurred. If a .ts file is modified saved the template modification will then display.

Desired functionality.

Live reload browser with template change when --aot flag is set.

Mention any other details that might be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: investigationRequires some digging to determine if action is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions