awendland / angular-json-tree

Angular directive for displaying a JSON object in an expandable tree structure
Other
79 stars 41 forks source link

Working With ControllerAs Syntax #8

Open timbrown81 opened 8 years ago

timbrown81 commented 8 years ago

It appears that this module does not work within a controller using the ControllerAs syntax correct? The directive simply does not seem to bind to an object with the vm.

Example: http://codepen.io/timbrown81/pen/QEyZrL

awendland commented 8 years ago

@timbrown81 Unfortunately, I haven't touched AngularJS code, outside of minor updates to this repo, in roughly 2 years, so I'm a bit out of practice when it comes to this issue. Would you be able to submit a PR to fix this?