i'm trying to add nativescript module into vue-nativescript.
the directive that i need:
nativescript-ng-shadow.
how to import add to vue?
i try these way:
Vue.registerElement('shadow', () => require('nativescript-ng-shadow').NgShadowModule)
and
new Vue({
directives: {
shadow: () => require('nativescript-ng-shadow').NgShadowModule
},
render: h => h('frame', [h(HelloWorld)])
}).$start();
but none is working !!!!
That's an Angular specific module, not for Vue. If you like to utilise the shadow feature form the plugin, you will have to directly access their JS apis or build an Vue directive within your project using same plugin apis.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments