Change view before menu close

Hi,

I have the menu-close directive in all my menu links, but i want to close the menu after the view has changed.

There is any config for that? or I should make that with events.

Thanks!