-
Notifications
You must be signed in to change notification settings - Fork 45
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
route respond with XML #21
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi I'm trying to have a route respond with an XML string like at this URL https://demo.twilio.com/docs/voice.xml.
Thanks for trying our documentation. Enjoy!
http://demo.twilio.com/docs/classic.mp3
But I only get formatted HTML.
My test code is below: found In utils\twilio\twilio.component.ts
import { Component } from '@angular/core';
import { Router } from '@angular/router';
@component({
selector: "twilio",
template:
<div [outerHTML]="xml"></div>
})
export class TwilioComponent {
xml = '\n' +
'Thanks for trying our documentation. Enjoy!\n' +
'http://demo.twilio.com/docs/classic.mp3\n' +
'';
}
Any suggestions?
The text was updated successfully, but these errors were encountered: