Issue with Angular UI grid Tree View when working with Typesript
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Below is a usual angularJS html sample using ui-grid-tree-view, which renders properly. <div id = "grid1" ui-grid = "gridOptions" ui-grid-tree-view class = "grid" > when converting the code to typescript, ui-grid-tree-view directive is not rendering, even the pre function in the directive is not being reached. For typescript code, "gridOptions" is being added as a public var to the controller class. Relevant code sample: export class MyController { constructor (){ this . gridOptions = { columnDefs : [ { name : 'Name' , width : '15%