Cristian Muscalu
Cristian Muscalu

Reputation: 9935

Angular2 folder path

My file is located in: dev/Posts/spinner.component.ts
I want to move it to dev/CustomHtml/spinner.component.ts

So instead of :
import {SpinnerComponent} from './spinner.component';
Should be:
import {SpinnerComponent} from 'dev/CustomHtml/spinner.component';

, but it doesn't work.

I can't seem to find any good documentation about this.
Please point me to some documentation, or give some examples here.
Thank you.

Upvotes: 1

Views: 388

Answers (1)

kaxi1993
kaxi1993

Reputation: 4710

use ../ to go parent route, use this instead: ../CustomHtml/spinner.component

Upvotes: 1

Related Questions