Refactored navigation toggle using Angular.