directive was not re-rendered when passed options were updated (counter, for example). Fixed by changing onInit hook to onChanges hook.
only one of subscribed observers was notified that init has finished (due to usage of share operator). Changed Observable to Promise so that there is guarantee that config code is executed once and that translation is always done after config is done.
Also removed console.logs (passing options works).
Getting some errors while executing npm install, but they don't seem to be connected.
Fixed two issues found during testing of solution to passing options to directive.
onInit
hook toonChanges
hook.share
operator). ChangedObservable
toPromise
so that there is guarantee that config code is executed once and that translation is always done after config is done.Also removed console.logs (passing options works). Getting some errors while executing npm install, but they don't seem to be connected.