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
Post a Comment