ui-layout
ui-layout copied to clipboard
fix layout memory leak
I fixed a memory leak in Layout service addLayout method by removing the controller from the layouts array when the directive ui-layout is destroyed.
I also changed the layout id generation from the array length (because we remove items when layout directive destroyed) to a simple increment.