am new to angular js using this ihave to perform following operation i have a text name bob.and a button like bold and italic while cliking on the bold button i want to bold the text BOB and italic while clicking the italic button
here is the code
html
<div ng-controller="MyCtrl">
<input type="text" ng-model="rootFolders" ng-init="rootFolders='Bob'" >
<button ng-click="chiliSpicy()">bold</button>
<button ng-click="jalapenoSpicy()">italic</button>
<br>{{rootFolders}}
</div>
code
var app = angular.module('myApp',[]);
function MyCtrl($scope) {
}