check out the "collapse" directive provided by http://angular-ui.github.io/bootstrap/ -- no need to roll our own