mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-06-28 14:15:13 +00:00
Add url bar controller
This commit is contained in:
@ -14,9 +14,13 @@
|
||||
<app-web *ngIf="!iframeUrl"></app-web>
|
||||
<div *ngIf="iframeUrl" class="iframe-container">
|
||||
<div class="urlbar-container">
|
||||
<button class="refresh">R</button>
|
||||
<input type="text" class="urlbar" value="{{iframeUrl}}">
|
||||
<button class="go">G</button>
|
||||
<button class="refresh" (click)="reloadIframe()">R</button>
|
||||
<input type="text"
|
||||
#urlbar
|
||||
class="urlbar"
|
||||
value="{{iframeUrl}}"
|
||||
(keyup.enter)="changeIframeURL()">
|
||||
<button class="go" (click)="changeIframeURL()">G</button>
|
||||
</div>
|
||||
<iframe class="iframe"
|
||||
#webiframe
|
||||
|
Reference in New Issue
Block a user