Topic: Unknown Custom Element - mdbvue
Deepak Balaji
asked 7 years ago
My main.js
import Vue from 'vue'
import Firebase from 'firebase'
import VueFire from 'vuefire'
import 'bootstrap/dist/css/bootstrap.css'
import 'mdbvue/build/css/mdb.css'
import { Container, Row, Column, Btn, Card, CardBody, CardHeader, CardImg } from 'mdbvue';
import App from './App'
import router from './router'
Vue.config.productionTip = false
Vue.use(VueFire)
let app;
Firebase.auth().onAuthStateChanged(function(user){
if(!app){
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
components: { App },
template: '<App/>'
})
}
})
My Component
<template lang="html">
<div class="profileFirst">
<Container>
</Container>
</div>
</template>
<script>
import Firebase from 'firebase'
import {db} from '../firebase'
import { Container, Row, Column, Btn, Card, CardBody, CardHeader, CardImg } from 'mdbvue';
export default {
name: 'profileFirst',
data: function(){
return{
}
},
created: function(){
this.user = Firebase.auth().currentUser;
},
methods: {
}
}
</script>
<style lang="css">
</style>
Can you tell me where I'm going wrong???
Anna Morawska
staff answered 7 years ago
<template>
<MdInput type="checkbox" id="checkbox1" label="Material unchecked" />
</template>
<script>
import { MdInput } from 'mdbvue';
export default {
name: 'InputsProPage',
components: {
MdInput
}
}
</script>
It should fix the problem.
Best,
Ania Deepak Balaji commented 7 years ago
Thank you very much for the clarification!!! This wasn't very clear in the documentation...FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Free
- Premium support: No
- Technology: MDB Vue
- MDB Version: 4.5.1
- Device: Laptop
- Browser: Firefox Nightly 63.0a1
- OS: KDE Neon
- Provided sample code: Yes
- Provided link: No