import { Component } from '@angular/core' ; import { DeviceService } from 'src/app/core/services/device.service' ; import { UserService } from 'src/app/core/services/user.service' ; import { randomId } from 'src/app/core/functions/func' ; import { DataService } from 'src/app/core/services/data.service' ; @ Component ( { selector : 'page-dashboard-addblock' , templateUrl : 'dashboard-addblock.html' , } ) export class DashboardAddblockPage { allBlocklist = [ ] ; get blockList ( ) { return this . dataService . block ; } set blockList ( newblockList ) { this . dataService . block = newblockList ; } get devices ( ) { return this . dataService . device . dict ; } constructor ( public deviceService , public userService , private dataService ) { } ionViewDidLoad ( ) { this . getBlockList ( ) ; } dismiss ( ) { } getBlockList ( ) { } addBlock ( block ) { let id = randomId ( ) ; } }