There is block HTML with article:
<div class="block">
<span ng-click="edit()">Click</span>
<div class="title">How to</div>
<div class="text">Text</div>
</div>
When I call edit function ng-click="edit()" I call AJAX that returns data:
title
text
These data I set in $scope:
$scope.title = title;
$scope.text = text;
How I can create form with input, textarea instead HTML in .block?
I neeed to switch on edit mode and display form for editing.