File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change
1
+ < div tabindex ="0 " (focus) ="focusLastTabbableElement() "> </ div >
2
+ < div #trappedContent > < ng-content > </ ng-content > </ div >
3
+ < div tabindex ="0 " (focus) ="focusFirstTabbableElement() "> </ div >
Original file line number Diff line number Diff line change @@ -13,11 +13,7 @@ import {InteractivityChecker} from './interactivity-checker';
13
13
@Component ( {
14
14
moduleId : module . id ,
15
15
selector : 'focus-trap' ,
16
- // TODO(jelbourn): move this to a separate file.
17
- template : `
18
- <div tabindex="0" (focus)="focusLastTabbableElement()"></div>
19
- <div #trappedContent><ng-content></ng-content></div>
20
- <div tabindex="0" (focus)="focusFirstTabbableElement()"></div>` ,
16
+ templateUrl : 'focus-trap.html' ,
21
17
encapsulation : ViewEncapsulation . None ,
22
18
} )
23
19
export class FocusTrap {
You can’t perform that action at this time.
0 commit comments