PDA

View Full Version : ContentEl div select



prabh.me
18 Mar 2014, 4:13 AM
The contentEl property is used to direct the component to output the contents of a DOM element. By default it looks for a div in index.html file. Is there a way I can use contentEl to look for a div in another HTML file. I do not want to modify the default generated index.html.
Help!

israelroldan
1 Apr 2014, 12:15 PM
Since javascript runs on the client side, this config looks in the html page where the app was loaded into. If you include the app.js file in sample.html then it will act on sample.html.