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

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

javascript - Replicate keyboard event with html button -