diff --git a/src/addons/mod/url/services/url.ts b/src/addons/mod/url/services/url.ts index 80825678b..cec979f77 100644 --- a/src/addons/mod/url/services/url.ts +++ b/src/addons/mod/url/services/url.ts @@ -33,7 +33,6 @@ import { ADDON_MOD_URL_COMPONENT } from '../constants'; export class AddonModUrlProvider { protected static readonly ROOT_CACHE_KEY = 'mmaModUrl:'; - static readonly COMPONENT = ADDON_MOD_URL_COMPONENT; /** * Get the final display type for a certain URL. Based on Moodle's url_get_final_display_type. diff --git a/src/addons/mod/url/url-lazy.module.ts b/src/addons/mod/url/url-lazy.module.ts index b6f4141c7..3fa447aff 100644 --- a/src/addons/mod/url/url-lazy.module.ts +++ b/src/addons/mod/url/url-lazy.module.ts @@ -35,4 +35,4 @@ const routes: Routes = [ AddonModUrlIndexPage, ], }) -export class AddonModUrlLazyModule {} +export default class AddonModUrlLazyModule {} diff --git a/src/addons/mod/url/url.module.ts b/src/addons/mod/url/url.module.ts index 2699d006b..563daf9c4 100644 --- a/src/addons/mod/url/url.module.ts +++ b/src/addons/mod/url/url.module.ts @@ -27,7 +27,7 @@ import { ADDON_MOD_URL_PAGE_NAME } from './constants'; const routes: Routes = [ { path: ADDON_MOD_URL_PAGE_NAME, - loadChildren: () => import('./url-lazy.module').then(m => m.AddonModUrlLazyModule), + loadChildren: () => import('./url-lazy.module'), }, ];