Is it possible to use Ember.TEMPLATES to check the existence of a template within a controller or component? I am using v1.12.1
We are currently transitioning to a route that is rendering a template that may not exist. Prior to the transition, we need an existence check of the template to determine whether we should transition.
Maybe this will work for you this.container.has('template:someName')
As a someName
you can put ie inbox.index
or inbox/index
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.