You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I'm having a little trouble picking up a directive in angular: when I try to inject it using this function, does it require me to already have the angular chart tag on the page or is there a way around this to inject the data in?
Oh wow thank you very much I hadn't thought of that approach, I'd been tearing my hair out trying to get that to work properly so thanks for the reply!
Hi I'm having a little trouble picking up a directive in angular: when I try to inject it using this function, does it require me to already have the angular chart tag on the page or is there a way around this to inject the data in?
angular.element( document.getElementById('chart-container-inject') ) .prepend( $compile( '<angular-chart options="options" style="height: 500px"></angular-chart>' )( $scope ) );
Lucas
The text was updated successfully, but these errors were encountered: