There is a templateNamespace
property you can set to svg
:
module.directive('testrect', function() {
return {
restrict: 'E',
templateNamespace: 'svg',
template: '<rect .../>',
replace: true
};
});
Here is a link to the documentation.
More Related Contents:
- Passing data between controllers in Angular JS?
- AngularJS : Difference between the $observe and $watch methods
- How to validate inputs dynamically created using ng-repeat, ng-show (angular)
- Difference between the ‘controller’, ‘link’ and ‘compile’ functions when defining a directive
- How to pass an object into a state using UI-router?
- How to detect browser back button click event using angular?
- AngularJS browser autofill workaround by using a directive
- External resource not being loaded by AngularJs
- Image loaded event in for ng-src in AngularJS
- angular ng-repeat in reverse
- Can Protractor and Karma be used together?
- Print Html template in Angular 2 (ng-print in Angular 2)
- Getting values from query string in an URL using AngularJS $location
- Error: [ng:areq] from angular controller
- Angularjs: Error: [ng:areq] Argument ‘HomeController’ is not a function, got undefined
- Why does d3.js v3 break my force graph when implementing zooming when v2 doesn’t?
- How can I get png(base64) with images inside of svg in Google Charts?
- Error: [ngModel:datefmt] Expected `2015-05-29T19:06:16.693209Z` to be a date – Angular
- SVG – click is not a function [duplicate]
- Angular UI Router: decide child state template on the basis of parent resolved object
- AngularJS : Asynchronously initialize filter
- Dynamically assign ng-model
- VueJs templating. How to load external templates
- Format Date time in AngularJS
- Dynamically created SVG elements are not rendered by the browser
- Calculate SVG Path Centroid with D3.js
- Clear localStorage on tab/browser close but not on refresh
- angularjs: change filter options dynamically
- How do I manipulate the SVG DOM and create elements?
- Angular.js: Is .value() the proper way to set app wide constant and how to retrieve it in a controller