mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
0.2.5 initial commit
Makefile incomplete
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<ion-button (click)="navigateBack()">
|
||||
<ion-icon slot="icon-only" name="arrow-back"></ion-icon>
|
||||
</ion-button>
|
||||
@@ -0,0 +1,20 @@
|
||||
import { NgModule } from '@angular/core'
|
||||
import { CommonModule } from '@angular/common'
|
||||
import { PwaBackComponent } from './pwa-back.component'
|
||||
import { IonicModule } from '@ionic/angular'
|
||||
import { RouterModule } from '@angular/router'
|
||||
import { SharingModule } from 'src/app/modules/sharing.module'
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
PwaBackComponent,
|
||||
],
|
||||
imports: [
|
||||
CommonModule,
|
||||
IonicModule,
|
||||
RouterModule.forChild([]),
|
||||
SharingModule,
|
||||
],
|
||||
exports: [PwaBackComponent],
|
||||
})
|
||||
export class PwaBackComponentModule { }
|
||||
16
ui/src/app/components/pwa-back-button/pwa-back.component.ts
Normal file
16
ui/src/app/components/pwa-back-button/pwa-back.component.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Component } from '@angular/core'
|
||||
import { PwaBackService } from 'src/app/services/pwa-back.service'
|
||||
@Component({
|
||||
selector: 'pwa-back-button',
|
||||
templateUrl: './pwa-back.component.html',
|
||||
styleUrls: ['./pwa-back.component.scss'],
|
||||
})
|
||||
export class PwaBackComponent {
|
||||
constructor (
|
||||
private readonly pwaBack: PwaBackService,
|
||||
) { }
|
||||
|
||||
navigateBack () {
|
||||
return this.pwaBack.back()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user