-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Description
Please look at this code:
import {NavbarComponent, FooterComponent} from './shared/index';
@Component({
selector: 'app',
templateUrl: 'app.component.html',
directives: [NavbarComponent, FooterComponent]
})
export class AppComponent {}
It will get an error: EXCEPTION: Unexpected directive value 'undefined' on the View of component AppComponent'
When I dont use barrels:
import {NavbarComponent} from './shared/navbar/navbar.component';
import {FooterComponent} from './shared/footer/footer.component';
It run properly.
So, what should I do ? Is this a bugs of angular cli ?
Version: angular-cli@webpack
OS: MacOSX El Capitan
moxival, kieronqtran, ayyfish and coryrylan
Metadata
Metadata
Assignees
Labels
No labels