O'Reilly logo

NativeScript for Angular Mobile Development by Nathanael J. Anderson, Nathan Walker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Finishing implementation with RecorderService

Now, let's finish this implementation with RecorderService in app/modules/recorder/services/recorder.service.ts:

// angularimport { Injectable } from '@angular/core';import { Subject } from 'rxjs/Subject';import { Subscription } from 'rxjs/Subscription';// appimport { DialogService } from '../../core/services/dialog.service';import { RecordModel, RecordState } from '../models';import { PlayerService } from '../../player/services/player.service';import { TrackModel } from '../../shared/models/track.model';@Injectable()export class RecorderService {  public state$: Subject<number> = new Subject();  public model: RecordModel;  private _trackId: number;  private _sub: Subscription;  constructor( private ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required