forked from NetanelBasal/ngrx-generator
-
Notifications
You must be signed in to change notification settings - Fork 5
BestPractices
kmathy edited this page Jan 1, 2018
·
4 revisions
If you want to contribute to this part, please follow the same structure: a link to your section + your section body + sign with your pseudo + end by horizontal line.
Maybe you're tired to import your files like this:
import {Something} from '../../../path/to/something';
You can find an interesting article about best practices for your Angular app. For a convenient import syntax, just add the following in your tsconfig.json
:
"paths": {
"@app/*": ["app/*"],
"@env/*": ["environments/*"]
}
So, you just need to import your files like this:
import { SomeService } from "@app/core"