项目作者: treetips

项目描述 :
angular-material auto toggle sidenav with @ngrx/store example
高级语言: TypeScript
项目地址: git://github.com/treetips/angular-material-appbar-sidenav-ngrx-example.git


angular-material auto toggle sidenav example

https://material.angular.io/

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

angular-material-appbar-sidenav-ngrx-example

Usage

  1. # browse and install Google chrome addon
  2. https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd?hl=ja
  3. # git clone
  4. git clone https://github.com/treetips/angular-material-appbar-sidenav-ngrx-example.git
  5. cd angular-material-appbar-sidenav-ngrx-example
  6. # install node_modules
  7. yarn install
  8. # start
  9. yarn start
  10. # open dev tools and select redux tab
  11. # browse
  12. http://localhost:4200/

License

MIT