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

can we use children instead of items in the collections, and also what if we can do for two way binding #56

Closed
karthikn21 opened this issue Jun 27, 2019 · 1 comment
Labels
question Further information is requested

Comments

@karthikn21
Copy link

No description provided.

@karthikn21 karthikn21 changed the title can we use childern instead of items in the collections can we use children instead of items in the collections, and also what if we can do for two way binding Jun 27, 2019
@ShankyTiwari ShankyTiwari added the question Further information is requested label Jul 7, 2019
@ShankyTiwari
Copy link
Owner

Hi @karthikn21,

  1. Can we use children instead of items in the collections:
    => Nope, sorry I'll have to do a lot of changes for that.

  2. If we can do for two way binding:
    => I don't clearly understand your intent here. However, if you want to update the menus based on some conditions (assume, if you have a text box and based on user's input if you want to change the Menu's label) you can easily do that.
    For example,

setInterval( () => {
      this.appitems[0]['items'][1]['items'][0]['label'] = `Dynamic Label - ${Math.random() * 10}`;
      console.log(this.appitems);
    }, 2000);

Take a look at output,
Dynamic Menus

And please do use ChangeDetectionStrategy.Default. As of now am closing the issue, if I was not clear, feel free to reopen the issue.

Thanks

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

No branches or pull requests

2 participants