Is there a way to efficiently pass data between the main and directory components?
I would like to automatically activate the directive when main.js loads.
Directive code:
angular.module('dmv.shared.components').
directive('doImportPackage', ['Package', function (Package) {
return {
restrict: 'A',
scope: {
onStart: '<',
onFinish: '<',
onError: '<'
},
link: function(scope, element, attributes) {.....}
Thanks!