Skip to content

Commit

Permalink
feat(playground): use @input for interpolation bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell committed Apr 10, 2016
1 parent 465af32 commit 895cd3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions playground/app/components/tester/tester.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, Input, Output, Attr } from 'ng-metadata/core';
import { Component, Input, Output } from 'ng-metadata/core';

@Component({
selector:'my-tester',
Expand Down Expand Up @@ -26,11 +26,11 @@ import { Component, Input, Output, Attr } from 'ng-metadata/core';
legacy:{transclude:true}
})
export class TesterComponent{
@Input('<') oneWay;
@Input() twoWay;
@Input('<') oneWay;
@Input('<') inOne = { name:'Martin' };
@Output() outOne = ()=>{ console.log( 'boooo' );};
@Attr() attrOne = 'hello default';
@Input('@') attrOne = 'hello default';
@Output() outOne = ()=>{ console.log( 'boooo' ) };

constructor(){
console.log( '===Tester CMP ctor====' );
Expand Down
2 changes: 1 addition & 1 deletion playground/app/directives/my-tester.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class TesterAttrDirective{
@Input() inOne = { name:'Martin from directive' };
@Output() outOne = ()=>{ console.log( 'mooo from directive' ) };
// @Output() outOne: Function;
@Attr() attrOne = 'hello default from directive';
@Input('@') attrOne = 'hello default from directive';

constructor(){
console.log( '===Tester DIR, ctor====' );
Expand Down

0 comments on commit 895cd3a

Please sign in to comment.