We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28eed50 commit 2f69f17Copy full SHA for 2f69f17
doc/index.rst
@@ -144,6 +144,7 @@ Stimulus controller:
144
// assets/controllers/myswup_controller.js
145
146
import { Controller } from '@hotwired/stimulus';
147
+ import SwupProgressPlugin from '@swup/progress-plugin';
148
149
export default class extends Controller {
150
connect() {
@@ -160,6 +161,7 @@ Stimulus controller:
160
161
_onPreConnect(event) {
162
// Swup has not been initialized - options can be changed
163
console.log(event.detail.options); // Options that will be used to initialize Swup
164
+ event.detail.options.plugins.push(new SwupProgressPlugin()); // Adding the progress bar plugin
165
}
166
167
_onConnect(event) {
0 commit comments