Angular quick tip – Put declarations before exports

21 בMay 2017

tags: ,
no comments

This is a very short post about exporting component from angular module.

On your NgModule decorator, you should assign the declarations before your export member
otherwise when trying to use your exported components/ directives / pipes, you will encounter
an error message of unknown element / attribute.

Remember this, it can save you valuable time.

Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*