https://github.com/ignaciofuentes/angular-everlive
Angular wrapper for easy consumption of Telerik's everlive-sdk
https://github.com/ignaciofuentes/angular-everlive
angular everlive telerik
Last synced: about 2 months ago
JSON representation
Angular wrapper for easy consumption of Telerik's everlive-sdk
- Host: GitHub
- URL: https://github.com/ignaciofuentes/angular-everlive
- Owner: ignaciofuentes
- Created: 2017-05-14T01:00:23.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-15T19:30:53.000Z (about 9 years ago)
- Last Synced: 2025-03-08T02:02:24.239Z (over 1 year ago)
- Topics: angular, everlive, telerik
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# angular-everlive
Angular wrapper for easy consumption of Telerik's everlive-sdk
## Usage
To install this library, run:
```bash
$ npm install angular-everlive --save
```
and then from your `AppModule`:
```typescript
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.
```typescript
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](https://github.com/jvandemo/generator-angular2-library)
To generate all `*.js`, `*.d.ts` and `*.metadata.json` files:
```bash
$ npm run build
```
To lint all `*.ts` files:
```bash
$ npm run lint
```
## License
MIT © [Ignacio Fuentes](mailto:ignaciofuentes@outlook.com)