Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I populate the abn-tree from a text file? #108

Open
mamacasc opened this issue Sep 22, 2016 · 0 comments
Open

How can I populate the abn-tree from a text file? #108

mamacasc opened this issue Sep 22, 2016 · 0 comments

Comments

@mamacasc
Copy link

I am able to populate the abn-tree by hard-coding data in my angularJS controller, e.g.
var vm = this;
vm.tran_data = [{
label: 'Transactions',
children: ['Top node', 'Next node'}]
I then reference tran_data in the html:

But I may have hundreds of nodes and want to put the data in a file that can be referenced instead of hard-coding the data in the controller. Can I do that and if so, what would the format of the data in the file be?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant