2.0.1 • Published 7 years ago

light-ng-http v2.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

light-ng-http

http service for light-ng framework

How to use

lightNg('app')
    
    .include('http')

    .run(['$http',function($http) {

        $http.send({
            url : 'https://reqres.in/api/users',
            method : "POST",
            data : {
                "name": "morpheus",
                "job": "leader"
            },
            async : true,
            callback : function(data){
                console.log(data);
            },
            error : function(err) {
                console.log(err);
            }
        });

    }])
    
    .build();

2.0.1

7 years ago

2.0.0

7 years ago