Angular quick tip – Put declarations before exports

Sunday, May 21, 2017

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.
tags: ,
no comments