Last active
October 3, 2016 19:45
-
-
Save adrianfaciu/8fa74249a8e2f9c2b288a9272c4b8223 to your computer and use it in GitHub Desktop.
NativeScriptLightBulb
This file contains 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'; | |
@Component({ | |
moduleId: module.id, | |
selector: 'ns-bulb-control', | |
templateUrl: 'bulb-control.component.html', | |
styleUrls: ['bulb-control.component.css'] | |
}) | |
export class BulbControlComponent { | |
maxValue = 255; | |
minValue = 0; | |
redValue = 128; | |
greenValue = 0; | |
blueValue = 0; | |
whiteValue = 0; | |
updateLightBulb() { | |
console.log('Update color'); | |
} | |
connectToMagicBlue() { | |
console.log('Connecting to device'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment