Skip to content

Instantly share code, notes, and snippets.

@jcope2013
Last active June 21, 2018 15:28
Show Gist options
  • Save jcope2013/903835e9619ffff525748a4ff77d878d to your computer and use it in GitHub Desktop.
Save jcope2013/903835e9619ffff525748a4ff77d878d to your computer and use it in GitHub Desktop.
One Way backspace test 2
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
actions: {
updateSsn(unmaskedValue, value){
this.set('ssn', value);
}
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<br>
{{one-way-input-mask value=ssn mask='999-99-9999' type="tel" update=(action 'updateSsn')}}
<br>
{
"version": "0.14.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js",
"ember": "2.18.2",
"ember-template-compiler": "2.18.2",
"ember-testing": "2.18.2"
},
"addons": {
"ember-data": "2.18.2",
"ember-inputmask": "0.6.8"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment