Open tysenmoore-xse opened 8 years ago
For this a simple $watch
should be enough
scope.$watch('open', function(value) { scope.isOpen = !!value; });
I only modified the src version, I was unclear if the dist version was generated as well as the minified versions. Let me know if there is more integration needed.
I treated it as a singleton because I was not sure if the watch would be added on every link phase. If you'd prefer I could remove the singleton approach.
The singleton won't help much here.
any update on this? Dynamic open attr would be fantastic
My plan is to use json-formatter-js for internally in this directive (#35) . That will make this directive a thin wrapper around the core lib. If you have time to do it I'll help merging and releasing it.
Any chance we can have the watched open attribute? Whats the status of this?
This is a simple change to implement #34. I am a little green at some of this stuff so this may not be the best approach. I tested the changes with simple collapse all/none buttons and they seemed to work well--redrew the content when a button was pressed.