خرید بک لینک

Vote count: 0

I'm using angular2-seed: https://github.com/mgechev/angular2-seed

How to create a variable to use imports absolute link instead of relative, like this:

import { MyService } from '@shared/services/MyService';

instead of:

import { MyService } from '../shared/services/MyService';

to avoid relative import paths ../../...

An example of this is the @angular import:

import { Component, OnInit, ViewEncapsulation } from '@angular/core';

How is it defined? Can we do something like this for our shared folder?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 11 خرداد 1395 ساعت: 21:38

صفحه بندی