DEV Community

Discussion on: Angular Modal Library

Collapse
 
atwright147 profile image
Andy Wright • Edited

Looks great, thank you for posting this.

May I suggest you change the selector prefix from ng- (ng-modal), to something else? ng- is meant to be reserved for use by Angular itself. The issue is, if Angular adds a component called ng-modal internally (unlikely, but possible), your component will conflict with that. Also it is unclear whether or not this component is official or not.

Collapse
 
siddev profile image
Siddhant Jaiswal

Thanks for you feedback.
What would you suggest the for the selector name?

Collapse
 
atwright147 profile image
Andy Wright • Edited

Well, that's the tricky bit :D

Perhaps your initials as the prefix or your github username?

siddhantdev-modal?

Thread Thread
 
siddev profile image
Siddhant Jaiswal

I'll go with sj-modal 😊