-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing ngrx, remaining changes to get app up and running on rc0
- Loading branch information
Showing
31 changed files
with
254 additions
and
727 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,39 +1,24 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { IonicApp, IonicModule } from 'ionic-angular'; | ||
import { StoreModule } from '@ngrx/store'; | ||
import { ClickerApp } from './app.component'; | ||
import { ClickerList } from '../pages'; | ||
import { ClickerForm } from '../components'; | ||
import { ClickerButton } from '../components'; | ||
import { ClickersService } from '../services'; | ||
// import { ClickerActions } from '../actions'; | ||
import { Page2 } from '../pages'; | ||
// import { clickerReducer, initialState } from '../reducers'; | ||
import { reducer } from '../reducers'; | ||
|
||
// Add the RxJS Observable operators we need in this app. | ||
import './rxjs-operators'; | ||
import { NgModule } from '@angular/core'; | ||
import { IonicApp, IonicModule } from 'ionic-angular'; | ||
import { ClickerApp } from './app.component'; | ||
import { ClickerList, PagesModule, Page2 } from '../pages'; | ||
import { ClickersService, StorageService } from '../services'; | ||
|
||
@NgModule({ | ||
declarations: [ | ||
ClickerApp, | ||
ClickerList, | ||
Page2, | ||
ClickerForm, | ||
ClickerButton, | ||
], | ||
imports: [ | ||
PagesModule, | ||
IonicModule.forRoot(ClickerApp), | ||
// StoreModule.provideStore({ clicker: clickerReducer }, { clicker: initialState }), | ||
StoreModule.provideStore(reducer), | ||
// EffectsModule.run(AppFirebaseEffects), | ||
], | ||
bootstrap: [IonicApp], | ||
entryComponents: [ | ||
ClickerApp, | ||
ClickerList, | ||
Page2, | ||
], | ||
providers: [ ClickersService ], | ||
providers: [ ClickersService, StorageService ], | ||
}) | ||
|
||
export class AppModule {} |
This file was deleted.
Oops, something went wrong.
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 +1 @@ | ||
<button block outline (click)="doClick.emit(clicker.id)">{{clicker.name}} ({{clicker.getCount()}})</button> | ||
<button ion-button block outline (click)="clickerService.doClick(clicker.id)">{{clicker.name}} ({{clicker.getCount()}})</button> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<form [formGroup]="form" (submit)="newClickerLocal(form.value)"> | ||
<form [formGroup]="form" (submit)="newClicker(form.value)"> | ||
<ion-row> | ||
<ion-col width-80> | ||
<ion-item > | ||
<ion-input block formControlName="clickerNameInput" type="text" placeholder="New Clicker"></ion-input> | ||
</ion-item> | ||
</ion-col> | ||
<ion-col> | ||
<button type="submit" block secondary outline> | ||
<button ion-button type="submit" block secondary outline> | ||
<ion-icon name="add-circle"></ion-icon> | ||
</button> | ||
</ion-col> | ||
</ion-row> | ||
</form> | ||
</form> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; | ||
import { IonicModule } from 'ionic-angular'; | ||
import { ClickerButton, ClickerForm } from './'; | ||
|
||
@NgModule({ | ||
declarations: [ | ||
ClickerForm, | ||
ClickerButton, | ||
], | ||
imports: [ | ||
FormsModule, | ||
IonicModule, | ||
ReactiveFormsModule, | ||
], | ||
exports: [ | ||
ClickerButton, | ||
ClickerForm, | ||
], | ||
entryComponents: [], | ||
providers: [ ], | ||
}) | ||
|
||
export class ComponentsModule {} |
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,2 +1,3 @@ | ||
export * from './clickerButton/clickerButton'; | ||
export * from './clickerForm/clickerForm'; | ||
export * from './components.module'; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.