I like to know if there is way to pre-write "dynamic" Angular 2 inputs and outputs on the index.html file, and the embedded Angular 2 app can bind with those elements?
i.e. index.html
<body>
<my-app>Loading...</my-app>
<div>{{getData}}</div>
<button (click)="onTestGet()">Click me to test get data</button>
</body>
where the Angular 2 app will be rendered inside the <my-app>
tag.
I have made the {{getData}}
and the button worked well when they are inside the Angular template. But for now, when they are inside index.html, they are just dumb elements.