Socket
Socket
Sign inDemoInstall

angular-cloud-elements

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular-cloud-elements

An AngularJS Library for interacting with the Cloud Elements Platform APIs


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
46.2 kB
Created
Weekly downloads
 

Readme

Source

angular-cloud-elements

An AngularJS Library for interacting with the Cloud Elements Platform APIs

npm version Circle CI

Features

  • ceElements for interacting with Elements and Element Instances APIs
  • ceFormulas for interacting with Formulas and Formula Instance APIs
  • ceTransformations for interacting with the Transformations APIs
  • ceBulk for interacting with the Bulk APIs

Build

npm install
npm install -g gulp
npm install -g bower
bower install
gulp build

PROTIP: gulp build creates two distribution files in the /dist folder, one concatenated and one minified

Testing

Tests are run using Karma, mochajs and chai.js

To test files in the /src directory:

gulp test-src

To run all tests (runs against src and dist):

gulp test

Installation for an Angular project

npm install angular-cloud-elements --save

Usage

Include the source file available in the /dist folder

<script src="node_modules/angular-cloud-elements/dist/angular-cloud-elements.js"></script>

A minified version is also provided

<script src="node_modules/angular-cloud-elements/dist/angular-cloud-elements.min.js"></script>

Then, in your module include angularCloudElements:

angular.module('myApp', ['angularCloudElements']);

Lastly, set the configs using the ceAuth service:

angular.module('myApp')
       .controller('myController', ['ceAuth', function(ceAuth) {
         function onLogin() {
           // obtain secrets
           ceAuth.setConfig({
             userSecret: 'a valid user secret',
             orgSecret: 'a valid org secret',
             baseUrl: 'base url of environment you are using'
           });
         }
       }])

FAQs

Last updated on 30 Jan 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc