>
>Do you know how to find out the current element name (or Id)?
>
>I am trying
>
> link: function (scope, element) {
> var noFocus = angular.isDefined(scope.noFocus) ? scope.noFocus : false;
> console.log('NoFocus defined=' + angular.isDefined(scope.noFocus) + ' Id= ' +scope.Id + ' noFocus=' + noFocus)
>
>In this directive
>
Scope is just an object that lets you pass info between the view and controller. The element the directive is operating on is passed right into the link function (assuming that's what you mean). So
element.id
// or
element.name