Professional Documents
Culture Documents
Quick reference
Import
classes/components/constants/services to use
in current class using this syntax. Remember to
provide correct filename with relative path in
import {<name of component>} from
from without .ts/.js extension.
'<filename>';
For example, if you have PhoneService.ts file
with PhoneService class defined, use below
syntax
import {PhoneService} from 'PhoneService';
@View({
Include directives into your component. First
...
import all directives you want to use in your
directives: [NgFor, NgIf]
components template/templateUrl.
})