Skip to content

Instantly share code, notes, and snippets.

View edmilsonlani's full-sized avatar

Edmilson Lani edmilsonlani

View GitHub Profile
import { Injectable } from '@angular/core';
import { Response, Http, Headers, RequestOptions } from '@angular/http';
import { Error } from '../models/error';
import { environment } from '../../../environments/environment';
import { Observable } from 'rxjs/Observable';
@Injectable()
export class HttpClient {
public LOCAL_STORAGE: string = 'authorization';
'use strict';
var AgenteController = Class.extend({
$scope: null,
$routeParams: null,
agenteService: null,
init: function ($scope, $routeParams, agenteService) {
this.$scope = $scope;
this.$routeParams = $routeParams;