Cannot read property 'api' of undefined - Shopware.Context.api

hi following this example plugin

https://github.com/shopware/swag-docs-bundle-example

in file

swag-docs-bundle-example/src/Resources/app/administration/src/module/swag-bundle/page/swag-bundle-list/ index.js

 

i am getting error in console 

Cannot read property ‚api‘ of undefined

it is coming from Shopware.Context.api

how can i solve this ?

 

created() {
this.repository = this.repositoryFactory.create(‚swag_bundle‘);

this.repository
.search(new Criteria(), Shopware.Context.api)
.then((result) => {
this.bundles = result;
});
}