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 -

Redirect to a HTTPS version using .htaccess -

Unlimited choices in BASH case statement -