Get started with angular-restmod CDN
MIT licensed
Angular-restmod is a library for AngularJS that simplifies RESTful API interactions using a fluent interface.
Tags:- angular
- restmod
Stable version
Copied!
How to start using angular-restmod CDN
import { Component } from '@angular/core';
import { RestService } from 'angular-rest-client/ngx';
import RestMod from 'angular-restmod/ngx/RestMod';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
constructor(private rest: RestService) {
this.initializeRestMod();
}
initializeRestMod() {
RestMod.setBaseURL('/api'); // Set your base API URL
const UserResource = RestMod.createResource('users');
UserResource.getList().then(users => {
console.log('Users:', users);
});
}
}
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
All versions
0.1.2
0.1.3
0.10.0
0.10.1
0.10.2
0.11.0
0.11.1
0.12.0
0.12.1
0.12.2
0.13.0
0.14.0
0.16.0
0.16.1
0.16.2
0.16.3
0.17.0
0.18.0
0.18.1
0.18.2
0.2.0
0.2.1
0.2.2
0.3.0
0.4.0
0.5.0
0.5.2
0.5.3
0.5.4
0.5.5
0.6.0
0.6.1
0.6.2
0.7.0
0.7.1
0.8.0
0.8.1
0.9.0
1.0.0
1.0.1
1.0.2
1.0.3
1.1.0
1.1.1
1.1.10
*** 1.1.11
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.1.9