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

"SVGMorpheus is not defined" in angular directive #31

Open
deejbee opened this issue Oct 4, 2016 · 0 comments
Open

"SVGMorpheus is not defined" in angular directive #31

deejbee opened this issue Oct 4, 2016 · 0 comments

Comments

@deejbee
Copy link

deejbee commented Oct 4, 2016

I have added the library to the page but when i do something like this:

 .directive('myDirective', function () {
            return {
                template: '<content-tag></content-tag>',
                link: function (scope, element, attr) {
                        var myIcons = new SVGMorpheus('#pinkFrames', { iconId: 'pinkFrame1'});
                        myIcons.to('#pinkFrame2', {}, null);
                   }
                }
            }
        });

I get:

SVGMorpheus is not defined ReferenceError: SVGMorpheus is not defined

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