Friday, December 7, 2018

moduleId and providers metadata properties at a component in Angular 7

A component may have a providers metadata property just as a module might. It's the same thing. Having moduleId: module.id as a metadata property and it's assignment allows for easier relative paths to a template or a .css file per this. Also, I don't know if I've mentioned it at this blog or not but instead of a templateUrl metadata property you may have a template metadata property to which you assign a string full of HTML right there in the component's TypeScript code in lieu of having a path to a file for HTML and other (Angular) markup.

No comments:

Post a Comment