-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
accordion events #556
Comments
@viskin you need to bind an isopen variable to a service. So you can keep application state when a component get destroyed |
Events model update is coming :) |
@valorkin , looking forward to events model! :) |
has the events model been created ?? |
@cescoferraro hey i am still figuring out angular 2 can you give me some idea how to do this?? i have an event emit and an event subscribe to hook up i just need the last bit.... |
Set a variable inside a service that holds the current tab name. It could be a string. Whenever you open a tab you should set its name as a variable inside the service you have created, Dont forget to set the default name for the main tab. Then you can query the actual variable value whenever you want inside your application. You could use ngrx if you wish a better approach for keeping your the app state. |
What's the status of the events model for the Accordion? |
I want to do things when user switches accordion-groups of accordion component. Say, I want to save in application state information about which accordion-group is currently open.
Maybe I missing something in the way angular2 does things, but I think this kind of behavior could be achieved with events. Some kind of event like isOpenChanged for accordion-group seems missing to me.
How can I bind some code to user actions of opening and closing accordion groups? Am I right that events are missing?
The text was updated successfully, but these errors were encountered: