Angularjs get element by id
Angularjs get element by id : You can use the angular.element(‘#element_id’); to get the element by id where #element_id is id of element. Here we are going to explain this with example.
Angularjs get element by id example
Here is an alternative of javascript document.getElementById in angularjs –
Angularjs get element by id
var currentElement = angular.element('#element_id'); |
Advertisements