-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Dominik Lewandowski edited this page Dec 15, 2020
·
5 revisions
Here you will find all the features available in the library and examples on how to use them.
If you do not have tlorc installed yet, just do:
npm install -s tlorc
Here are some basic examples on how to use the library:
TloEventWrapper
import {TloEventWrapper} from 'tlorc';
const el = document.getElementById('foo');
const tloEvent = new TloEventWrapper(el);
tloEvent.throttle('scroll', () => {
// code here
});
TloHttp
import {TloHttp} from 'tlorc';
const http = new TloHttp();
http.get('https://jsonplaceholder.typicode.com/todos/1')
.then(data => {
// code here
});