Would there be possibility of ng-directive's link function's parameter element's instance to be a different value between "general angularJS" vs "Ionic framework"?


#1

Would there be possibility of ng-directive’s link function’s parameter element’s instance to be a different value between “general angularJS” vs “Ionic framework”?

I am in middle of converting my MEAN stack web app into mobile app using Ionic framework, since the element instance that I am getting with angular.element(element) within link function gives me a value that I can not query through ng-directive’s template HTML, I will have to use general jquery to find that element which seems to take longer…?

[general ng-directive link function:]

console.log(“test:”, angular.element(element));

and debug console shows below–>

test: [div]0: divlength: 1__proto__: Object[0]
test: [div.ng-scope, selector: “”, context: div.ng-scope]0: div.ng-scopecontext: div.ng-scopelength: 1selector: ""proto: n[0]

[Ionic framework ion-conent ng-directive link function:]

console.log(“test:”, angular.element(element));

and debug console shows below–>

test: [div]0: divlength: 1__proto__: Object[0]


#2

duuuude, why are you posting all your topics multiple times -.-:


#3

hey bengtler, i believe I meant to write only once but I dont know why its up there twice. I will remove this thread:)