Hi,
I’m using version 3.9.1. I copied and pasted your example and it works fine. But in my project, we follow the View-Controller-Model template so we avoid using $scope.
angular.module(‘dynamicForm’)
.controller(‘SectionController’, SectionController);
SectionController.$inject = [‘$scope’, ‘sectionModel’];
function SectionController(scope, sectionModel) {
var vm = this;
scope.people = data;
….
}
I replace scope with vm: vm.people = data;
I still have the table shows up but at there is an error in the debug console: TypeError: Cannot read property ‘created’ of undefined.
I test a few other examples and it seems like jqx-grid works well with $scope but not vm.
Any reason why?
Thank you,
Tan