Topic: Unknown Custom Element - mdbvue
Deepak Balaji free asked 6 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 6 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 free commented 6 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
- ForumUser: 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