Last active
February 23, 2017 10:38
-
-
Save leetheguy/ca1ecced2476e28634db36e2893b4f81 to your computer and use it in GitHub Desktop.
illustrating getters and setters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component } from '@angular/core'; | |
| import { NavController, NavParams } from 'ionic-angular'; | |
| @Component({ | |
| selector: 'page-settings', | |
| templateUrl: 'settings.html' | |
| }) | |
| export class SettingsPage { | |
| pomLengthValue: number; | |
| shortBreakLengthValue: number; | |
| longBreakLengthValue: number; | |
| constructor(public navCtrl: NavController, public navParams: NavParams) { | |
| pomLengthValue = 25; | |
| shortBreakLengthValue = 5; | |
| longBreakLengthValue = 30; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment