Hello

ERROR in src/app/app.component.ts(3,10): error TS2305: Module '"C:/Angular
Activity/NgRxExample/currency-conversion/src/app/actions/amount"'
has no exported member 'AmountChangeAction'.
src/app/app.module.ts(6,9): error TS2305: Module '"C:/Angular
Activity/NgRxExample/currency-conversion/src/app/actions/amount"' has no
exported member 'AmountChangeAction'.
src/app/reducers/amount.ts(4,58): error TS2694: Namespace '"C:/Angular
Activity/NgRxExample/currency-conversion/src/app/actions/amount"' has
no exported member 'AmountChangeAction'.
src/app/reducers/amount.ts(7,21): error TS2339: Property 'AMOUNTCHANGE'
does not exist on type 'typeof import("C:/Angular
Activity/NgRxExample/currency-conversion/src/app/actions/amount")'.

*************************
import { Action } from '@ngrx/store';
export const AMOUNTCHANGE = '[Amount] Change'

export class AmountChangeAction implements Action {
readonly type = AMOUNTCHANGE;
constructor(public payload: number) {}

}


*****************************

export const CURRENCIESUPDATE = '[Currency] UpdateAll';
export const CURRENCIESUPDATED = '[Currency] UpdatedAll';

export class CurrenciesUpdateAction implements Action {
readonly type = CURRENCIESUPDATE
}


export class CurrenciesUpdatedAction implements Action {
readonly type = CURRENCIESUPDATED
constructor(public payload: Currency[]) {}
}

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to