Browse Source

Update global-features.md

pull/23275/head
Fahri Gedik 11 months ago
parent
commit
da5d56aef1
  1. 7
      docs/en/framework/ui/angular/global-features.md

7
docs/en/framework/ui/angular/global-features.md

@ -9,14 +9,14 @@ The `ConfigStateService.getGlobalFeatures` API allows you to get the enabled fea
````js
import { ConfigStateService } from '@abp/ng.core';
import { Component, OnInit } from '@angular/core';
import { Component, OnInit, inject } from '@angular/core';
@Component({
/* class metadata here */
})
class DemoComponent implements OnInit {
constructor(private config: ConfigStateService) {}
private config = inject(ConfigStateService);
ngOnInit(): void {
// Gets all enabled global features.
const getGlobalFeatures = this.config.getGlobalFeatures();
@ -44,4 +44,3 @@ class DemoComponent implements OnInit {
}
}

Loading…
Cancel
Save