0

what i'm trying to do is getting data from an html file and i want the output to be a json object in angularjs i'm not quite sure if this is possible or not .

so for example i have this html file test.html

<my-tag type='text' size='14' default='header' label='Header1' />
<my-tag type='textarea' size='50' default='paragraph' label='Text1'/>

i need a function that call this html file and it returns json object like

[
    { label:'Header1', type: 'text', default:'header', size: '14'},
    { label:'Text1', type:'textarea',default:'paragraph', size: '50'}
];
5

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.