Skip to content

Instantly share code, notes, and snippets.

@wharley
Last active February 13, 2017 15:45
Show Gist options
  • Save wharley/db11ca9c0c321245b466c80905310783 to your computer and use it in GitHub Desktop.
Save wharley/db11ca9c0c321245b466c80905310783 to your computer and use it in GitHub Desktop.
import { Injectable } from '@angular/core';
import { Http, Response } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';
import { HomePage } from './home';
@Injectable()
export class HomeService {
constructor(public http: Http) { };
getFunctions() {
return this.http.get("http://otaciobarbosa.com.br/app/login.php?username=teste.santos&password=teste123")
.map( (res:Response) => res.json());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment