Q: Integrate MetroUI (meta tag)
See original GitHub issueHi,
from the MetroUi docs (https://metroui.org.ua/vuejs.html):
- Add meta tag of late initialization Metro 4 <meta name="metro4:init" content="false">
- Initialize Metro 4 in the hook mounted
I have added it to the index.ejs:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="metro4:init" content="false">
...
and used the mount-hook to init Metro:
new Vue({
components: { App },
router,
store,
template: '<App/>',
mounted: function () {
Metro.init();
}
}).$mount('#app');
But this gives me:
[Vue warn]: Error in mounted hook: "ReferenceError: Metro is not defined"
Q: Is it possible to use the meta-tag stuff together with electron/vue?
Thx
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Including Metro UI in your page
Begin from 4.3.3, Metro UI initialized after page content was loaded. You can change this behavior with special meta tag metro4:init:mode . This...
Read more >Advanced Video Coding - Wikipedia
Advanced Video Coding (AVC), also referred to as H.264 or MPEG-4 Part 10, is a video compression standard based on block-oriented, motion-compensated coding ......
Read more >Programming the Mobile Web - WordPress.com
series of meta tags and techniques that we'll cover later in this book. With this technique. (Apple calls it a web app), the...
Read more >Search Results - CVE
This vulnerability allows users to embed arbitrary JavaScript code in the Web ... remote attackers adding a Javascript payload to a page's meta...
Read more >Fernando Magno Alves - Software Engineer II - Microsoft
I am responsible for the development and maintenance of a framework for developing an integrated ERP of e-commerce and various websites. I coordinated...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@KingKnecht did you import metro? you need to import metro before referencing it.
@KingKnecht Yep or you can just import them in main.js with
import '@/metro4/build/css/metro-all.min.css'
which should be the preferred method of importing css from a node package modulePlease close this issue since its resolved.