Reputation: 78234
I am using the default boiler plate from anguaryjs tutorial site. I want to create component into a directory of app e.g.
app/git/git.component.ts
Yet
I cant find the below.
import {Component} from '@angular2/core';
So..how do I import?
Upvotes: 0
Views: 24
Reputation: 32670
This has nothing to do with your folder structure. You're mixing the beta-style angular2/<module>
imports with the RC-style @angular/<module>
.
Replace
import {Component} from '@angular2/core';
by
import {Component} from '@angular/core';
Upvotes: 1