samedi 20 septembre 2014

How to access ng-view document elements in Angular controller


Vote count:

0




I'm trying to use visjs and angular together. Visjs would like a document element such as



var container = document.getElementById('networkVisualisation');


Unfortunately that element is inside the ng-view portion of the page. I just get container = null when I look for it. Googling suggests it's because the page hasn't loaded yet with most people saying you shouldn't do it at all.


How can I access the element the proper angular way?



asked 1 min ago

Cramer

1,216






How to access ng-view document elements in Angular controller

Aucun commentaire:

Enregistrer un commentaire