Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-directus

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-directus

Angular wrapper for getdirectus.com Javascript SDK

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 01 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc