Hi all,

In angular 1 i can do angular.element($0).scope()

I have a directive


angular.module('upgradeModule').directive('pIcon',()=>{
    return {
    scope: {
        'iconType': '@',
        'iconDefinition': '@'
    },
        bindToController:true,
    controller: () => {

    },
        controllerAs:'$ctrl',
    templateUrl: 'components/icon/icon.html'
}});


In an angular 2 component i have in the template:

<p-icon  icon-type="svg"
           icon-definition="search-mode">
</p-icon>



I would expect that in the html icon.html i would have a controller $ctrl = 
{iconType:'svg', iconDefinition:'search-mode'}

For some reason the $ctrl is empty, the keys are undefined. Is there any 
reaso for this. What do i wrong?
Thanks,
David

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to