problem with gallery creation in ionic

0

I'm developing a mobile application with Ionic. my problem is this: I need to create a gallery and did a step by step on the net how to do, the problem that both sites use urls for their path and I'm trying with the path on the machine, but the error 404 in images .

import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';


@Component({
selector: 'page-about',
templateUrl: 'about.html'
})
export class AboutPage {
images : any[] = [];

zoomedImage : any;
constructor(
    public navCtrl: NavController
) {

for (var _i = 1; _i < 60; _i++) {
        this.images.push({
            id: _i,
            image_path: 'localhost:Tcc\TCC\CalcPhoto\src\assets\imgs' + _i
        })
    }
}

// Método responsável por setar na variável "zoomedImage" a imagem selecionada

zoomImage(img) {
    if (this.zoomedImage =! null && this.zoomedImage == img) {

    // Necessário para remover a marcação da imagem caso clique na mesma

        this.zoomedImage = null;
    } else {
        this.zoomedImage = img;
    }
}

}
    
asked by anonymous 04.04.2018 / 01:44

0 answers