0.2.0 • Published 7 years ago

angular-everlive v0.2.0

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

angular-everlive

Angular wrapper for easy consumption of Telerik's everlive-sdk

Usage

To install this library, run:

$ npm install angular-everlive --save

and then from your AppModule:

import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import the AngularEverliveModule and EverliveConfig interface
import { AngularEverliveModule, EverliveConfig } from 'angular-everlive';

//Create EverliveConfig object
const everliveConfig : EverliveConfig  = {
  appId: "your-app-id",
  scheme: "https"
};

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    AngularEverliveModule.initialize(everliveConfig),
    FormsModule,
    HttpModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule {
}

Then in the constructors of your Component and Services you can receive an Everlive Singleton object.

import { Component } from '@angular/core';
import { Everlive  } from 'angular-everlive';
import { Observable } from 'rxjs/Observable';
import "rxjs";

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {

  constructor(private el: Everlive){
  }
}

Forking this library / Contributing / Development

This plugin was generated using a yeoman generator

To generate all *.js, *.d.ts and *.metadata.json files:

$ npm run build

To lint all *.ts files:

$ npm run lint

License

MIT © Ignacio Fuentes

0.2.0

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago