Tampa
Tampa

Reputation: 78234

Cant get angular 2 to scale with app subdectory folders

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

Answers (1)

drew moore
drew moore

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

Related Questions