-
-
-->
diff --git a/src/app/accounting/accounting.component.ts b/src/app/accounting/accounting.component.ts
index 81d10adf2..7f23eaef4 100644
--- a/src/app/accounting/accounting.component.ts
+++ b/src/app/accounting/accounting.component.ts
@@ -1,7 +1,7 @@
import { Component, OnInit } from '@angular/core';
@Component({
- selector: 'app-accounting',
+ selector: 'mifosx-accounting',
templateUrl: './accounting.component.html',
styleUrls: ['./accounting.component.scss']
})
diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts
index 3f07b6a0e..ad0e2d47d 100644
--- a/src/app/app-routing.module.ts
+++ b/src/app/app-routing.module.ts
@@ -1,9 +1,13 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
+// Fallback when no prior route is matched
const routes: Routes = [
- // Fallback when no prior route is matched
-{ path: '**', redirectTo: '', pathMatch: 'full' },
+ {
+ path: '**',
+ redirectTo: '',
+ pathMatch: 'full'
+ }
];
@NgModule({
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index 7c307b51b..e4b6d45e2 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -1,46 +1,52 @@
import { BrowserModule } from '@angular/platform-browser';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { ServiceWorkerModule } from '@angular/service-worker';
+
import { TranslateModule } from '@ngx-translate/core';
import { NgxChartsModule } from '@swimlane/ngx-charts';
import { environment } from '../environments/environment';
-import { CoreModule } from '../app/core';
-import { SharedModule } from '../app/shared';
+
+import { WebAppComponent } from './web-app.component';
+
+import { CoreModule } from './core/core.module';
+import { SharedModule } from './shared/shared.module';
+import { NavigationModule } from './navigation/navigation.module';
import { HomeModule } from './home/home.module';
import { AboutModule } from './about/about.module';
+import { LoginModule } from './login/login.module';
import { ClientsModule} from './clients/clients.module';
import { AccountingModule } from './accounting/accounting.module';
-import { LoginModule } from './login/login.module';
-import { AppComponent } from './app.component';
-import { AppRoutingModule } from './app-routing.module';
-import { NavigationModule } from './navigation/navigation.module';
import { SelfServiceModule } from './self-service/self-service.module';
+import { AppRoutingModule } from './app-routing.module';
+
@NgModule({
imports: [
BrowserModule,
- ServiceWorkerModule.register('./ngsw-worker.js', { enabled: environment.production }),
+ BrowserAnimationsModule,
FormsModule,
HttpClientModule,
+ ServiceWorkerModule.register('./ngsw-worker.js', { enabled: environment.production }),
TranslateModule.forRoot(),
NgxChartsModule,
CoreModule,
SharedModule,
+ NavigationModule,
HomeModule,
AboutModule,
+ LoginModule,
ClientsModule,
AccountingModule,
- LoginModule,
- NavigationModule,
SelfServiceModule,
AppRoutingModule
],
- declarations: [AppComponent],
+ declarations: [WebAppComponent],
providers: [
],
- bootstrap: [AppComponent]
+ bootstrap: [WebAppComponent]
})
export class AppModule { }
diff --git a/src/app/clients/clients-routing.module.ts b/src/app/clients/clients-routing.module.ts
index ea03b4ac3..8f600884f 100644
--- a/src/app/clients/clients-routing.module.ts
+++ b/src/app/clients/clients-routing.module.ts
@@ -1,7 +1,7 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
-import { Route, extract } from '../../app/core';
+import { Route, extract } from '../core';
import { ClientsComponent } from './clients.component';
import { CreateClientComponent} from './create-client/create-client.component';
import { ViewClientComponent } from './view-client/view-client.component';
@@ -9,10 +9,26 @@ import { ViewLoanComponent } from './view-loan/view-loan.component';
const routes: Routes = [
Route.withShell([
- { path: 'clients', component: ClientsComponent},
- { path: 'clients/create', component: CreateClientComponent},
- { path: 'clients/view', component: ViewClientComponent},
- { path: 'clients/viewloan', component: ViewLoanComponent}
+ {
+ path: 'clients',
+ component: ClientsComponent,
+ data: { title: extract('Clients') }
+ },
+ {
+ path: 'clients/create',
+ component: CreateClientComponent,
+ data: { title: extract('Create Client') }
+ },
+ {
+ path: 'clients/view',
+ component: ViewClientComponent,
+ data: { title: extract('View Client') }
+ },
+ {
+ path: 'clients/viewloan',
+ component: ViewLoanComponent,
+ data: { title: extract('View Loan') }
+ }
])
];
diff --git a/src/app/clients/clients.component.html b/src/app/clients/clients.component.html
index a48a35b47..b3508f992 100644
--- a/src/app/clients/clients.component.html
+++ b/src/app/clients/clients.component.html
@@ -1,4 +1,4 @@
-
+
-
| # |
@@ -31,9 +29,7 @@
-
-
| 4 |
@@ -90,12 +86,10 @@
-
-