My question may be a little confusing and I will try to make it as simple as possible. I'm trying to scrape a website using cheerio.js, extract just the input fields, send those to my front end, render them and bind them to a value on my controller using ng-model. Angular won't just let me display raw html for security reasons so I'm sending it through $sce.trustAsHtml() and ng-bind-html. My problem arises when I try to bind that input field to a value on the controller using ng-model. It just doesn't work and I don't know if it has something to do with $sce or if my approach is all wrong.
Controller:
app.controller('homeCtrl', function ($scope, $sce, ScraperFactory) {
$scope.value
$scope.renderHtml = $sce.trustAsHtml('<input type="text" ng-model="value"/>')
});
HTML:
<section id="home">
<pre> value = {{value}}</pre>
<input type="text" ng-model="value" />
<p ng-bind-html="renderHtml"></p>
</section>
The pre and the first input work as intended.