Upgrading to v1.2

Introduction

This guide is intended to provide you with everything you need to successfully upgrade to EJS 1.2.

Changes to environment configuration

In EJS 1.2, all of the existing instance methods were moved to plugins. As such, you will need to update your environment configuration file to include them so they will be loaded at runtime.

To learn about these plugins, check out the core plugin reference.

environment.js
...
plugins: [
    // Added in EJS 1.1
    'Vue/Directive/i18nDirective',
    
    // Added in EJS 1.2
    'Vue/InstanceMethod/Api',
    'Vue/InstanceMethod/FindRouteByName',
    'Vue/InstanceMethod/GeneratePath',
    'Vue/InstanceMethod/GetRoute',
    'Vue/InstanceMethod/RedirectTo',
    'Vue/InstanceMethod/SetLocale',
    'Vue/InstanceMethod/Translate'
]
...

Last updated