0.2.2 • Published 7 years ago

angular-directus v0.2.2

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

Angular Directus

Angular wrapper for Directus Javascript SDK

Instalation

Install the package via npm: npm install angular-directus

Setup

var ngDirectus = require('angular-directus');
require('angular').module('demo', [ngDirectus]);

Include ngDirectus module

require('angular').module('demo', [ngDirectus]);

Initialize Directus

require('angular').module('demo')
  .config(['directusConfigProvider', function(directusConfigProvider) {
    directusConfigProvider.init(URL, KEY, VERSION);
  }]);

Example use in controller, get Items from Table

require('angular').module('demo')
	.controller('DemoController', [directus',  function(directus) {
		directus.getItems(TABLE).then(function(response){
			console.log(response);
		},function(error){
			console.error(error);
		});
	}]);

Check the official Directus documention for all getting endpoints https://api.getdirectus.com/1.1/#Getting_Data

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago