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

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -