Accept an onInit method that would be called once the directive is initiated. This method will be called with the forceHorseInstance.
This would replace the current options.forceHorseInstance mechanism.
Motivation:
Creating more than one forceHorse with the same options object.
Preventing memory leaks by not forcing the user to hold the API in a long term object.
Accept an
onInit
method that would be called once the directive is initiated. This method will be called with theforceHorseInstance
. This would replace the currentoptions.forceHorseInstance
mechanism. Motivation: