angular/angular.io

Code out of date

Closed this issue · 0 comments

Hi Angular! I found a small out of date code that might cause a lot of frustration for new users trying out the angular-hero-app. The is just a code that is breaking because of new plugin being installed. On this page under the Add heroes to the dashboard section. The original code is

@Component({
  selector: 'my-dashboard',
  templateUrl: './dashboard.component.html',
})

I believe it should be changed to:

@Component({
  selector: 'my-dashboard',
  templateUrl: 'app/dashboard.component.html',
})

or

@Component({
  moduleId: module.id,
  selector: 'my-dashboard',
  templateUrl: './dashboard.component.html',
})