I have written some div full-screen tutorials before, all of which are pure html and js web pages, but this time the framework uses Angular, how to implement a div full screen? The text is to make the div full screen of the map, and the rendering is as follows:
Previous post:
Use screenfull.js fullscreen plugin at the address:The hyperlink login is visible.
npm installation:
Angular 7 introduces plugins:
HTML page map code:
Trigger the onClickScreenFull event to make the div full screen, the ts script code is as follows:
Tourists, if you want to see the hidden content of this post, please Reply
HTML5 Fullscreen API in Angular.js plugin can also achieve full-screen effect, I won't test it here, address:The hyperlink login is visible.
Resources:The hyperlink login is visible.
|