Skip to content

Sample project that shows how to manage application state with Mobx-state-tree in Angular.

Notifications You must be signed in to change notification settings

g2r/angular-wishlist-mst

 
 

Repository files navigation

Angular-Wishlist-Mst

Sample project that shows how to manage application state with Mobx-state-tree in Angular.

This example is based on the example "Manage Application State with Mobx-state-tree in React by Michel Weststrate" that I modified and adapted to Angular to practice my skills.

Technologies: Mobx-state-tree, Mobx, Mobx-angular, Angular, Typescript, Angular Material.

This project was generated with Angular CLI version 1.6.3.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Requirements

Debugging MobX

To turn on / off the debug tool, open developer tools' console, and run:

# Turn on.
mobxAngularDebug(true)
# Turn off.
mobxAngularDebug(false)

License

The MIT License (MIT) Copyright (c)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Original work Copyright (c) 2018 Adrián Brito

About

Sample project that shows how to manage application state with Mobx-state-tree in Angular.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 79.1%
  • HTML 13.7%
  • JavaScript 4.8%
  • CSS 2.4%