Skip to content

Commit fb1ac1d

Browse files
committed
fix(TranslateDirective): support ng2-translate attribute (for protractor)
Protractor treats `translate` as a boolean because it is an html5 attribute, use `ng2-translate` instead if this is a problem for you
1 parent ceae46a commit fb1ac1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/translate.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {isDefined} from "./util";
44
import {TranslateService, LangChangeEvent} from "./translate.service";
55

66
@Directive({
7-
selector: '[translate]'
7+
selector: '[translate],[ng2-translate]'
88
})
99
export class TranslateDirective implements AfterViewChecked, OnDestroy {
1010
key: string;

0 commit comments

Comments
 (0)