Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
show and hide sidenav according to device width. add nav button
- Loading branch information
chase
committed
Apr 16, 2015
1 parent
84a9cff
commit 9a22121
Showing
5 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
class App extends Controller | ||
title: '' | ||
constructor: ($scope, $rootScope)-> | ||
|
||
openMenu: -> | ||
@$mdSidenav('left').open() | ||
|
||
constructor: ($scope, $rootScope, @$mdSidenav)-> | ||
$rootScope.$on '$stateChangeSuccess', (event, toState) => | ||
@title = toState.name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters