Git Product home page Git Product logo

angular-nebri's Introduction

Angular Nebri

The simple and easy-to-use package for making Nebri api requests from a Angular application.

This app is intended for use with a Nebri instance. Visit https://nebrios.com to sign up for free!

Installation

Copy nebri-angular.js to the appropriate location in your application. The location should be added to the index or base html page. ``` <script src="/path/to/nebri-angular.js"></script> ```

Setup

In app.js, `nebriAngular` should be added to your dependencies. The config section should be updated as well to include your Nebri instance name. ``` angular.module('myApp', [ ..., 'nebriAngular' ]). config([..., 'nebriAngularProvider', function(..., nebriAngularProvider) { ... nebriAngularProvider.setInstanceName(your_instance_name); }]); ``` - instance name is your Nebri instance name. i.e. https://instance_name.nebrios.com

Public Functions

api_request: - api_module: the name of the api module stored on your Nebri instance - view_name: the name of the target function contained in the given api module - method: the desired HTTP request method - payload: an object containing params and values, can be an empty object

Usage Example

NOTE: in order to use this app in a controller, you must include `nebriAngular`. ``` nebriAngular.api_request('greeting_api', 'start_greeting', 'get', {"greeting": "hello"}) .success(function(data){ console.log(data); }).error(function(err){ console.log(err); }); ```

angular-nebri's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.