Skip to content

Instantly share code, notes, and snippets.

@jazdw
Created March 16, 2016 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jazdw/60f2c4647cfc38bbb9c6 to your computer and use it in GitHub Desktop.
Save jazdw/60f2c4647cfc38bbb9c6 to your computer and use it in GitHub Desktop.
<div ng-hide="showSetInput">
<ma-point-value point="myPoint" ng-click="showSetInput=true; myValue=myPoint.value"></ma-point-value>
</div>
<div ng-show="showSetInput">
<input ng-blur="showSetInput=false" ng-model="myValue" ma-focus-on="showSetInput" ma-enter="myPoint.setValue(myValue); showSetInput=false">
<button ng-mousedown="myPoint.setValue(myValue)">Set</button>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment