You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Plugins, Injectables, Directives and Global Components](#plugins-injectables-directives-and-global-components)
22
22
-[Directives usage](#directives-usage)
23
23
-[TODO](#todo)
24
24
@@ -254,11 +254,11 @@ Keep in mind that hwne you pass down literal strings for anything other than `cl
254
254
</template>
255
255
```
256
256
257
-
## Plugins, Injectablesand Directives
257
+
## Plugins, Injectables, Directives and Global Components
258
258
259
259
Due to the architectural changes introduced by Vue 3 in most cases if you need access to lifecycle hooks you can simply create a composable and use it directly in your vue components. However, there are instances you need to install plugins (e.g., Pinia/Vuex, VueRouter, etc), directives or you want access to shared logic in your angular app. Plugins in ngVue 3 have been revamped to be simpler, access to "root" props is no longer possible, however you can now pass through Plugins, Injectables and Directive easily as well as still create your own custom ngVue Plugin.
`useNgVuePlugins` creates an Angular service `$ngVue`. This service implements a custom plugins system and a means to pass through Injectables and Plugins to the Vue app instance.
19
19
20
-
### Provide/Use/Directives
20
+
### Provide/Use/Directives/Global Components
21
21
22
22
Sometimes you simply need to add a plugin, injectable or directive to the app instance, you don't have any specific need for angular but due to ngVue's architecture the app instance isn't readily available, `$ngVueProvider` has pass through function to help you with that.
0 commit comments