TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mitgard Mitgard
NA
21
2.4k
How do I get svg in an ajax request in Angular 2?
Jul 18 2018 10:39 PM
Hi, can you help me? What I need is to get an svg file through an ajax request using angular 2 I have it in jquery but I would get it using the HttpClient method
Is this possible?
current code
get_svg_elm =
function
(url) {
var
elm =
""
;
$.ajax({
url:
"assets/img/data_svg/"
+ url,
data:
""
,
async:
false
,
dataType:
"xml"
,
success:
function
(svg) {
elm = svg.documentElement.innerHTML;
}
});
return
elm;
}
this function returns the path tag of the svg
Reply
Answers (
1
)
How to upload image in server through CKEditor?
invalidoperationexception unable to resolve service for type