diff --git a/client/src/app/app.config.ts b/client/src/app/app.config.ts index cb1270e..fee4921 100644 --- a/client/src/app/app.config.ts +++ b/client/src/app/app.config.ts @@ -1,11 +1,14 @@ -import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core'; +import { ApplicationConfig, DEFAULT_CURRENCY_CODE, provideBrowserGlobalErrorListeners } from '@angular/core'; import { provideRouter } from '@angular/router'; import { routes } from './app.routes'; +import { DATE_PIPE_DEFAULT_OPTIONS } from '@angular/common'; export const appConfig: ApplicationConfig = { providers: [ provideBrowserGlobalErrorListeners(), - provideRouter(routes) + provideRouter(routes), + {provide: DEFAULT_CURRENCY_CODE, useValue: ''}, + {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {dateFormat: 'shortDate'}}, ] }; diff --git a/client/src/app/screens/screen-profile/screen-profile.html b/client/src/app/screens/screen-profile/screen-profile.html index 7f26032..7b99d45 100644 --- a/client/src/app/screens/screen-profile/screen-profile.html +++ b/client/src/app/screens/screen-profile/screen-profile.html @@ -7,7 +7,10 @@

{{ username }}

{{ userID }}

- +
+ +

{{ balance | currency}}

+
diff --git a/client/src/app/screens/screen-profile/screen-profile.ts b/client/src/app/screens/screen-profile/screen-profile.ts index 0c51175..2705b2d 100644 --- a/client/src/app/screens/screen-profile/screen-profile.ts +++ b/client/src/app/screens/screen-profile/screen-profile.ts @@ -12,6 +12,7 @@ import Transaction from '@model/transaction'; export class ScreenProfile implements OnInit{ username = 'John Doe'; userID = 'testuser'; + balance = 200; transactions!: Transaction[]; constructor(private api: APIService){} diff --git a/client/src/app/screens/screen-send/screen-send.html b/client/src/app/screens/screen-send/screen-send.html index 25f1d01..4efea13 100644 --- a/client/src/app/screens/screen-send/screen-send.html +++ b/client/src/app/screens/screen-send/screen-send.html @@ -10,7 +10,7 @@
- $ +