Element: [Vue warn]: Failed to resolve directive: loading

Created on 20 May 2019  ·  2Comments  ·  Source: ElemeFE/element

I am using the load component, follow the example on the documentation and I get an error. Is there a solution released?

<div v-loading="loading">
</div>

data() {
      return {
loading: false
}
invalid

All 2 comments

Hello, this issue has been closed because it does not conform to our issue requirements. Please submit issues with issue-generator. More info can be found in #3693.

I am using the load component, follow the example on the documentation and I get an error. Is there a solution released?

<div v-loading="loading">
</div>

data() {
      return {
loading: false
}

Hey, man! You have to do like this in your main.js file to make things work:

import { Loading } from 'element-ui';
Vue.use(Loading);

Was this page helpful?
0 / 5 - 0 ratings