I’m try to make modal component like
bootstrap modal. I can’t ensure where to puts the js code. Because it is possible used in any where,
My current solution is create a component and use it in application.hbs. For active the modal, I register some method
spinner and inject them into
For example, I can invoke
this.alertModal(...) in controller to active the modal.
But is there any better way to build the modal?