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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -