Closed
Description
OS?
Mac OSX 10.12.1
Versions.
angular-cli: 1.0.0-beta.18
node: 6.8.1
os: darwin x64
Npm: 4.0.0
Chrome: 54.0.2840.71
Repro steps.
new project created with "ng new testproject". Changed only to the following code in app.component.ts
import {Component, OnInit} from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
ngOnInit(): void {
this.dosomething();
}
title = 'app works!';
dosomething() {
this.title = "trying to do something";
this.title = "trying to do something else";
}
}
In chrome dev tools, breakpoint doesn't seem to match the scope
I've tested in my other projects which i've updated to beta.18, get the same issue.
Also tried reinstalling angular-cli to make sure there where no issues there:
npm uninstall -g angular-cli
npm cache clean
npm install -g angular-cli
ng new testproject
Metadata
Metadata
Assignees
Labels
No labels