Registering it

To make a construct usable, in this case a pipe, you need to tell the module it exists. Just like with components, we need to add to the declarations property like so:

@NgModule({
declarations : [ MyPipe ]
})
export ModuleClass {}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset