Skip to content

Instantly share code, notes, and snippets.

@justinramel
Created December 24, 2015 14:03
Show Gist options
  • Save justinramel/8642ba915eb0a0e5dadc to your computer and use it in GitHub Desktop.
Save justinramel/8642ba915eb0a0e5dadc to your computer and use it in GitHub Desktop.
import {Page, Modal} from 'ionic/ionic';
import {InputModal} from './input-modal';
import {RatesService} from './rates.service';
@Page({
templateUrl: 'app/rates/rates.html',
providers: [RatesService]
})
export class Rates {
constructor(modal: Modal, rates: RatesService) {
this.modal = modal;
rates.all().then(rates => {
this.rates = rates;
});
}
showInputModal(direction) {
this.modal.open(InputModal, {direction: direction});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment