Skip to content

Instantly share code, notes, and snippets.

View map.html
<ion-content no-padding>
<div #map id="map" style="height: 100%;">
<ion-header>
<ion-input type="text" placeholder="Type you address..."></ion-input>
</ion-header>
<ion-footer>
<ion-row>
<ion-col>
<button ion-button block (click)="callButton1()">Button 1</button>
View index.php
<?php
define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development');
//debe retornar development
die(var_dump(ENVIRONMENT));
switch (ENVIRONMENT)
{
View provider.ts
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
@Injectable()
export class HeroService {
constructor (private http: Http) {}
}