Codific mvc567

mvc567 is a high performance, open-source ASP.NET Core-based web application platform. It provides CMS functionality to its users.

View the Project on GitHub codific/mvc567

Vue Components

Vue components in mvc567 are a combination between real Vue.js component wrapped into tag helper.

Load Vue component

To execute Vue component into Razor view you do the following actions:

@section Vue{ }


###### How it works:
At the moment when you create a Vue component into **~\Scripts\VueComponents** folder and build the project, a task from **gulpfile.js** read the file and generate a Razor view (_{NameOfComponent}.Vue.cshtml). Then **vue-import** tag helper use the name of the component to import this Razor view into target view.

#### Nested Vue components

To use a component from component all you need to do is to import your Vue components in Vue section, ordered by their hierarchy of calls, e.g. if you want to use the component **'link'** from component **'navigation'** you must import component **'link'** before the other one.

#### Vue router

To use the features of Vue router you must define the different routes into **App.js**.

#### Auto-generated components

By using the **Mvc567.Cli** you can create Vue components by just one command:

mvc567 vue-component -n ComponentName ``` To use this command without issues you must execute it when you are inside the folder of your project (The folder where is placed Script folder).