Skip to content

Commit

Permalink
fix(AoT): change access adj from private to public
Browse files Browse the repository at this point in the history
AoT ngfactory can't access private prop

#39
  • Loading branch information
maxisam committed Apr 3, 2017
1 parent ab62e6e commit fd7dc41
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/clipboard.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ export { Clipboard };
export class ClipboardDirective implements OnInit, OnDestroy {
public clipboard: Clipboard;

@Input('ngxClipboard') private targetElm: ElementRef;
@Input('ngxClipboard') public targetElm: ElementRef;

@Input() private cbContent: string;
@Input() public cbContent: string;

@Output() private cbOnSuccess: EventEmitter<boolean> = new EventEmitter<boolean>();
@Output() public cbOnSuccess: EventEmitter<boolean> = new EventEmitter<boolean>();

@Output() private cbOnError: EventEmitter<boolean> = new EventEmitter<boolean>();
@Output() public cbOnError: EventEmitter<boolean> = new EventEmitter<boolean>();

constructor(private elmRef: ElementRef) { }
constructor(public elmRef: ElementRef) { }

public ngOnInit() {
let option: Clipboard.Options;
Expand Down

0 comments on commit fd7dc41

Please sign in to comment.