Skip to content

Instantly share code, notes, and snippets.

@AlexanderKozhevin
Created June 6, 2016 21:22
Show Gist options
  • Save AlexanderKozhevin/a88aea605a55ba2b841d1bb997deb23c to your computer and use it in GitHub Desktop.
Save AlexanderKozhevin/a88aea605a55ba2b841d1bb997deb23c to your computer and use it in GitHub Desktop.
import {Component} from 'angular2/core';
import {Phone} from './phone';
@Component({
selector: 'hello-world',
template: `
<label>Phone international:</label>
<hr>
<phone [inputmodel]="phonenumber" (outputmodel)="emitter($event)"></phone>
`,
directives: [componentItem, Phone]
})
export class HelloWorld {
phonenumber: number = '23823'
emitter(value){
console.log(value)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment