Last active
February 13, 2017 15:45
-
-
Save wharley/db11ca9c0c321245b466c80905310783 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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