author Damien Dell'Amico <damien.dellamico@gmail.com>
 *  copyright license import * as uuid from 'node-uuid' ; import { Injectable } from '@angular/core' ; import { Events } from 'ionic-angular' ; import { RideModel } from './ride.model' ; @ Injectable ( ) export class RideService { _rides : Array < RideModel > = [ ] ; constructor ( public events ) { } addRide ( departure , destination ) { const model = new RideModel ( uuid . v4 ( ) , departure , destination ) ; this . _rides . push ( model ) ; } getRides ( ) { return this . _rides ; } }