Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/treetips/angular-material-appbar-sidenav-ngrx-example
angular-material auto toggle sidenav with @ngrx/store example
https://github.com/treetips/angular-material-appbar-sidenav-ngrx-example
angular angular-material angular5 animation appbar material-design ngrx-store responsive sidenav typescript yarn
Last synced: 18 days ago
JSON representation
angular-material auto toggle sidenav with @ngrx/store example
- Host: GitHub
- URL: https://github.com/treetips/angular-material-appbar-sidenav-ngrx-example
- Owner: treetips
- Created: 2018-04-17T15:41:58.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-17T15:45:24.000Z (almost 7 years ago)
- Last Synced: 2024-11-15T08:43:42.364Z (2 months ago)
- Topics: angular, angular-material, angular5, animation, appbar, material-design, ngrx-store, responsive, sidenav, typescript, yarn
- Language: TypeScript
- Size: 85.9 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# angular-material auto toggle sidenav example
[https://material.angular.io/](angular-material)
With sidenav module of angular-material, it is the sample which changes the mode of the sidenavi from 'side' to 'over' automatically when screen size is changed.
I manage the opening and shutting status of the sidenavi in store using @ngrx/store. Similarly, I manage the title on appbar in store. I can confirm the state of the store by Redux DevTools addon of Google Chrome.
angular-materialのappbarとsidenavモジュールを使い、スクリーンサイズが変更されると自動的にサイドナビのモードをoverに変更するサンプルです。
サイドナビの開閉ステータスは@ngrx/storeを使い、storeで管理しています。同様にappbar上のタイトルもstoreで管理しています。ストアの状態はGoogle ChromeのRedux DevToolsアドオンで確認する事ができます。
## Features
- yarn v1.3
- angular v5.2.9
- angular-material v5.2.4
- @ngrx/store v5.2.0
- @ngrx/store-devtools v5.2.0## Requirement
- yarn or npm
## Screenshot
## Usage
```bash
# browse and install Google chrome addon
https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd?hl=ja
# git clone
git clone https://github.com/treetips/angular-material-appbar-sidenav-ngrx-example.git
cd angular-material-appbar-sidenav-ngrx-example
# install node_modules
yarn install
# start
yarn start
# open dev tools and select redux tab
# browse
http://localhost:4200/
```## License
[MIT](http://b4b4r07.mit-license.org)