Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binding high charts object to scope from directive crashes Ng-Inspector on load #150

Open
jdynamite opened this issue Dec 2, 2015 · 0 comments

Comments

@jdynamite
Copy link

Whenever I do the last bit where I assign the high charts object to the scope - ng-inspector will crash the whole app when opened. Any tips? Could this be a bug or am I doing something horrible?

app.directive('highchart', function () {
    return {
        restrict:'E',
        template:'<div></div>',

        link: function (scope, element, attrs) {

            var opt = {

                chart: {
                    renderTo: element[0],
                    type:'line',
                    marginRight:10,
                    marginBottom:40
                },

                series : [
                    {
                        data:[7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3]
                    }
                ]
            };

            scope.something = new Highcharts.Chart(opt);

        }
    };

});
@jdynamite jdynamite changed the title Binding high charts JS to scope from directive crashes Ng-Inspector on load Binding high charts object to scope from directive crashes Ng-Inspector on load Dec 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant