A word about naming conventions for custom directives and pipes

Talking about reusability, the common convention is to prepend a custom prefix to the selector. This prevents conflicts with other selectors defined by other libraries that we might be using in our project. The same applies to pipes as well, as we highlighted already when introducing our very first custom pipe.

Ultimately, it is up to you and the name convention you embrace, but it is generally a good idea to establish a naming convention that prevents this from happening. A custom prefix is definitely the easier way.

..................Content has been hidden....................

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