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

route respond with XML #21

Open
cmh234 opened this issue Aug 27, 2017 · 0 comments
Open

route respond with XML #21

cmh234 opened this issue Aug 27, 2017 · 0 comments

Comments

@cmh234
Copy link

cmh234 commented Aug 27, 2017

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?

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