https://github.com/fxcosta/ngx-say-cheese
Simple Angular 2+ wrapper for say-cheese to integrating a webcam and snapshots into your app.
https://github.com/fxcosta/ngx-say-cheese
angular say-cheese snapshot webcam
Last synced: 2 months ago
JSON representation
Simple Angular 2+ wrapper for say-cheese to integrating a webcam and snapshots into your app.
- Host: GitHub
- URL: https://github.com/fxcosta/ngx-say-cheese
- Owner: fxcosta
- Created: 2017-08-05T05:44:03.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-06T05:37:33.000Z (almost 9 years ago)
- Last Synced: 2025-04-03T00:24:21.401Z (over 1 year ago)
- Topics: angular, say-cheese, snapshot, webcam
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# ngx-say-cheese (not for production yet)
## Installation
To install this library, run:
```bash
$ npm install ngx-say-cheese --save
```
and then from your Angular `AppModule`:
```typescript
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import your library
import { NgxSayCheeseModule } from 'ngx-say-cheese';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgxSayCheeseModule.forRoot()
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
```
Once your library is imported, you can use its component and service in your Angular application:
```xml
```
Once defined component in your template, you can use the SayCheeseService to
init, stop, take snapshot and others methods:
```typescript
import {SayCheeseService} from 'ngx-say-cheese';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
constructor(private cheeseService: SayCheeseService) {}
someMethodToDispatchServiceEvents() {
this.cheeseService.init();
}
}
```
## License
MIT © [Felix Costa](mailto:fx3costa@gmail.com)