Below is my code Example, in the code am trying to append DIV to label.
what i need exactly is "I Don't need DIV
element after label
tag" but i need to append some html after to label tag.
<!DOCTYPE html>
<html>
<script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular-sanitize.js"></script>
<script>
var app = angular.module('myApp', ['ngSanitize']);
app.controller('CartController', function($scope) {
$scope.title = "<b>Hello world</b>";
$scope.test = "How are you..!";
$scope.AppendText = function() {
var myEl = angular.element( document.querySelector('#divID'));
myEl.append('Hi<br/>How are U..?');
}
});
</script>
<body ng-app="myApp" >
<div ng-controller="CartController">
<label ng-bind-html="title" ng-init="AppendText()">
<div id="divID"></div>
</label>
</div>
</body>
</html>