Back to Abp

ASP.NET Core MVC / Razor Pages UI: JavaScript Global Features API

docs/en/framework/ui/mvc-razor-pages/javascript-api/global-features.md

10.3.0881 B
Original Source
json
//[doc-seo]
{
    "Description": "Learn how to use the `abp.globalFeatures` JavaScript API to access enabled global features in your ABP Framework applications."
}

ASP.NET Core MVC / Razor Pages UI: JavaScript Global Features API

abp.globalFeatures API allows you to get the enabled features of the Global Features in the client side.

This document only explains the JavaScript API. See the Global Features document to understand the ABP Global Features system.

Usage

js
//Gets all enabled global features.
> abp.globalFeatures.enabledFeatures

[ 'Shopping.Payment', 'Ecommerce.Subscription' ]


//Check the global feature is enabled
> abp.globalFeatures.isEnabled('Ecommerce.Subscription')

true

> abp.globalFeatures.isEnabled('My.Subscription')

false