1.0.4 • Published 3 years ago

@script-development/vue-services v1.0.4

Weekly downloads
69
License
MIT
Repository
github
Last release
3 years ago

vue-services

Documentation: https://script-development.github.io/vue-services/

To work locally run the following command in this directory:

  • npm link

Then run the following command in your project directory:

  • npm link @script-development/vue-services

Frontend Controller

Vue Services uses Frontend Controllers. A Controller requires an API Endpoint.

Component layout

App Component -> Controller Base Component -> Controller Page Component

Route layout per Controller

    route: plural translation
    component: Base Component
    children:

        page: Overview
        route: ''
        name: plural translation + .overview
        component: Overview Component

        page: Create
        route: '/create'
        name: plural translation + .overview
        component: Create Component

        page: Show
        route: ':id'
        name: plural translation + .show
        component: Show Component

        page: Edit
        route: ':id/edit'
        name: plural translation + .edit
        component: Edit Component

Function Base Component

For every route the Base Component is also being loaded. The Base Component calls the read method from the Controller once it is mounted. This way when you switch from create to overview within the same Controller, the base data is not being loaded again.

1.0.4

3 years ago

0.2.27

3 years ago

0.2.30

3 years ago

0.2.33

3 years ago

0.2.32

3 years ago

0.2.31

3 years ago

0.2.29

3 years ago

0.2.28

3 years ago

1.0.3

3 years ago

0.2.26

3 years ago

0.2.25

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.2.24

3 years ago

0.2.23

3 years ago

0.2.22

3 years ago

0.2.21

3 years ago

0.2.20

3 years ago

0.2.19

3 years ago

0.2.16

3 years ago

0.2.18

3 years ago

0.2.17

3 years ago

0.2.15

3 years ago

0.2.14

3 years ago

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago