jquery - populate ng-bind-html from templateURL or any html template source -
i have tabs controller:
$scope.tabs = [ { template:'modules/order/views/estimates-list.html', heading: 'view estimates', route:'default.order.info.estimates.list', active:false }, { template:'modules/order/views/estimates-create.html', heading: 'create new estimate', route:'default.order.info.estimates.create', active:false }, ];
here on active tab following template loading:
estimates-create.html
<div ng-controller="examplecontroller"> <div ng-bind-html="myhtml"> <div ng-repeat="(key, value) in myobj"> ... </div> </div> </div>
i in need ng-bind-html element initialized 1 angular-html-template file or have html now. problem $scope.myhtml
reset on opening tab. how can populate $scope.myhtml
in template file(template.html
) or keep html in ng-bind-html="myhtml"
after initializing?
template.html
<div ng-repeat="(key, value) in myobj"> ... </div>
Comments
Post a Comment