What is the Equivalent of -
angular.element(element).scope()
In Angular 2.0?
I frequently used the above code snippet to retrieve scope variable in my Angular 1.x application. Is there a comparable method in Angular 2?
If Not
If not, how can I eliminate this dependency? My code contains numerous dynamic elements, and if I were to migrate it to Angular 2, a component would need to be initialized for each element. These components could have multiple levels of child components, making it necessary to access nth level child component from the parent.