alexk111 / SVG-Morpheus

JavaScript library enabling SVG icons to morph from one to the other. It implements Material Design's Delightful Details transitions. (THIS PROJECT IS NOT MAINTAINED ANYMORE)
MIT License
2.7k stars 241 forks source link

"SVGMorpheus is not defined" in angular directive #31

Open deejbee opened 8 years ago

deejbee commented 8 years ago

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