Commit f34e4484 authored by dev0tion's avatar dev0tion

Group services and classes, add global service

parent 9d290484
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { ApiService } from './shared/api/api.service';
import { ApiService } from './shared/services/api.service';
@Component({
selector: 'app-root',
......
......@@ -11,7 +11,8 @@ import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { LoginComponent } from './login/login.component';
import { ApiService } from './shared/api/api.service';
import { ApiService } from './shared/services/api.service';
import { GlobalService } from './shared/services/global.service';
@NgModule({
......@@ -28,7 +29,7 @@ import { ApiService } from './shared/api/api.service';
AppComponent,
LoginComponent
],
providers: [ ApiService ],
providers: [ ApiService, GlobalService ],
bootstrap: [ AppComponent ]
})
......
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { ApiService } from '../shared/api/api.service';
import { WalletLoad } from '../shared/wallet-load';
import { ApiService } from '../shared/services/api.service';
import { WalletLoad } from '../shared/classes/wallet-load';
@Component({
selector: 'app-login',
......
import { Component, Injectable } from '@angular/core';
import { ApiService } from '../../shared/api/api.service';
import { ApiService } from '../../shared/services/api.service';
import { WalletCreation } from '../../shared/wallet-creation';
import { Mnemonic } from '../../shared/mnemonic';
import { WalletCreation } from '../../shared/classes/wallet-creation';
import { Mnemonic } from '../../shared/classes/mnemonic';
@Component({
selector: 'create-component',
......
import { Component, OnInit } from '@angular/core';
import { ApiService } from '../../shared/api/api.service'
import { WalletRecovery } from '../../shared/wallet-recovery'
import { ApiService } from '../../shared/services/api.service'
import { WalletRecovery } from '../../shared/classes/wallet-recovery'
@Component({
selector: 'app-recover',
......
......@@ -4,10 +4,10 @@ import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/catch';
import { WalletCreation } from '../wallet-creation';
import { WalletRecovery } from '../wallet-recovery';
import { WalletLoad } from '../wallet-load';
import { Mnemonic } from '../mnemonic';
import { WalletCreation } from '../classes/wallet-creation';
import { WalletRecovery } from '../classes/wallet-recovery';
import { WalletLoad } from '../classes/wallet-load';
import { Mnemonic } from '../classes/mnemonic';
/**
* For information on the API specification have a look at our Github:
......
import {Injectable} from "@angular/core";
@Injectable()
export class GlobalService {
constructor() {}
private walletPath: string;
getWalletPath(walletPath: string) {
return this.walletPath = walletPath;
}
setWalletPath(walletPath: string) {
this.walletPath = walletPath;
}
}
\ No newline at end of file
import { Component, OnInit } from '@angular/core';
import { ApiService } from '../../shared/api/api.service'
import { ApiService } from '../../shared/services/api.service'
@Component({
selector: 'history-component',
......
import { Component, OnInit } from '@angular/core';
import { ApiService } from '../../shared/api/api.service';
import { ApiService } from '../../shared/services/api.service';
@Component({
selector: 'dashboard-component',
......
import { Component, OnInit } from '@angular/core';
import { ApiService } from '../../shared/api/api.service'
import { ApiService } from '../../shared/services/api.service'
@Component({
selector: 'receive-component',
......
import { Component } from '@angular/core';
import { ApiService } from '../../shared/api/api.service';
import { ApiService } from '../../shared/services/api.service';
@Component({
selector: 'send-component',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment