javascript - AngularJS ignore require if controller not found in directive -


i have directive using require attribute value : '^myctrl'

is there anyway can catch error thrown if 'myctrl' isn't found anywhere ?

not sure catching error, can make optional , avoid altogether:

require: '?^myctrl' 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -