getNoticias() {
return this._http.get(this.url + 'noticias')
.map(res => res.json());
}
getNoticias(){
this._notice.getNoticias().subscribe(
result =>{
console.log(result);
this.notice = result.notice;
},
error=>{
this.errorMessage=<any>error;
if (this.errorMessage != null) {
console.log(this.errorMessage);
alert('Error en la petición');
}
}
);
}