Closed
Description
On the latest master, and on Windows machines, adding a route doesn't add imports to the App Component.
Repro steps on a windows machine:
ng new foo
cd foo
ng build
ng g r my-route
ng build # this will fail compilation
At this point, foo.component.ts
looks like this (note the missing imports):
import { Component } from '@angular/core';
@Component({
moduleId: module.id,
selector: 'foo-app',
templateUrl: 'foo.component.html',
styleUrls: ['foo.component.css']
,
directives: [ROUTER_DIRECTIVES],
providers: [ROUTER_PROVIDERS]
})
export class FooAppComponent {
title = 'foo works!';
}