Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component } from '@angular/core';
- import { NavController} from 'ionic-angular';
- import { Reservasi } from '../reservasi/reservasi';
- import { RestapiService } from '../../providers/restapi-service';
- @Component({
- selector: 'page-salon',
- templateUrl: 'salon.html'
- })
- export class SalonPage {
- datas : any;
- data : any;
- constructor(public navCtrl: NavController, private restapiService: RestapiService) {
- }
- ionViewDidEnter(){
- this.datas = [];
- this.loadData();
- }
- loadData(){
- this.restapiService.loadSalon(this.data).then(
- (dt) => {
- let result : any = dt;
- this.datas = result.data;
- },
- () => {
- }
- );
- }
- salondetil(item){
- this.navCtrl.push('salondetil',{id_user:item.id_user});
- }
- reservasi(){
- this.navCtrl.push(Reservasi);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement