angular - Restrict a pipe to be used in one component in a module -


in angular 2, have pipe used in 1 component , know how prevent sharing other components in same module.

i want ensure scope of custom pipe component want , not other components in same module.

it not possible, way restrict pipe 1 specific component use separate ngmodule both pipe , component.

if want use component above, should export component can used in module.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -