Below is the code snippet containing the ng-bind-html
:
<span ng-bind-html="text"></span>
Here is the stack trace:
angular.js:13236 TypeError: bindings.push is not a function
at Function.$$addBindingInfo (http://localhost:9000/bower_components/angular/angular.js:8004:18)
at ngBindHtmlLink (http://localhost:9000/bower_components/angular/angular.js:23505:18)
at invokeLinkFn (http://localhost:9000/bower_components/angular/angular.js:9492:9)
at nodeLinkFn (http://localhost:9000/bower_components/angular/angular.js:8978:11)
at compositeLinkFn (http://localhost:9000/bower_components/angular/angular.js:8226:13)
at compositeLinkFn (http://localhost:9000/bower_components/angular/angular.js:8229:13)
at compositeLinkFn (http://localhost:9000/bower_components/angular/angular.js:8229:13)
at nodeLinkFn (http://localhost:9000/bower_components/angular/angular.js:8973:24)
at compositeLinkFn (http://localhost:9000/bower_components/angular/angular.js:8226:13)
at nodeLinkFn (http://localhost:9000/bower_components/angular/angular.js:8973:24) <span ng-bind-html="text" class="ng-binding">
The controller script:
(function (module) {
mifosX.controllers = _.extend(module, {
MainController: function (scope, location, sessionManager, translate, $rootScope, localStorageService, keyboardManager, $idle, tmhDynamicLocale,
uiConfigService, $http) {
$http.get('release.json').success(function(data) {
scope.version = data.version;
scope.releasedate = data.releasedate;
});
// Rest of the controller code omitted for brevity...
}
});
mifosX.ng.application.controller('MainController', [
'$scope',
'$location',
'SessionManager',
'$translate',
'$rootScope',
'localStorageService',
'keyboardManager', '$idle',
'tmhDynamicLocale',
'UIConfigService',
'$http',
mifosX.controllers.MainController
]).run(function ($log) {
$log.info("MainController initialized");
});
}(mifosX.controllers || {}));