https://github.com/rxlabz/ng-redarx-providers
Angular2 Dart providers for redarx
https://github.com/rxlabz/ng-redarx-providers
Last synced: over 1 year ago
JSON representation
Angular2 Dart providers for redarx
- Host: GitHub
- URL: https://github.com/rxlabz/ng-redarx-providers
- Owner: rxlabz
- License: bsd-3-clause
- Created: 2016-12-20T22:53:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-21T01:13:43.000Z (over 9 years ago)
- Last Synced: 2025-03-09T15:08:49.695Z (over 1 year ago)
- Language: Dart
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# redarx_angular
simple dispatcher providers (DISPATCH, QUERY, QUERIE$, REQUEST$)
## Usage
```dart
@Component(
selector: 'my-app',
styleUrls: const ['app_component.css'],
templateUrl: 'app_component.html',
viewProviders: const [
/* provides opaqueTokens and instance factory */
const Provider(DISPATCHER, useFactory: dispatcherFactory),
const Provider(DISPATCH,
useFactory: dispatchFactory, deps: const [DISPATCHER]),
const Provider(QUERY, useFactory: queryFactory, deps: const [DISPATCHER]),
const Provider(REQUEST$,
useFactory: request$Factory, deps: const [DISPATCHER]),
const Provider(QUERIE$,
useFactory: querie$Factory, deps: const [DISPATCHER]),
],
directives: const [TodoForm, TodoFooter, TodoItem, UsersView])
class AppComponent {}
```