angular - How to specify the path when importing service into service and component? -


i know in service , component need use import {myservice} '../my-service' if want import service.

but question is:

is there quick way specify path service is? use '../', use './'. have use '../parentfolderofmyservice', have use '../parentfolderofmyservice/my-service'.

p.s. using visual studio 2017.

./ refers current directory (the directory of file writting)

../ refers parent directory

the names names of directories

to avoid having write name of file can use barrels


Comments

Popular posts from this blog

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

javascript - Understanding ExtJS Framework Syntax -