Skip to content

Commit

Permalink
feat(transloco): update scope docs page
Browse files Browse the repository at this point in the history
  • Loading branch information
maartentibau committed Sep 13, 2024
1 parent 55a28f2 commit f3fbc17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/docs/lazy-load/scope-configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ Now we can access each one of the `todos` keys by using the `todos` namespace:

## Scope's namespace

By default, the namespace will be the `scope` name (camel cased), but we can override it by providing custom `alias` name in the module/component `scope` provider:
By default, the namespace will be the `scope` name (camel cased), but we can override it by setting the `scope.keepNamespaceCasing` option to `true` in the `config`.

An alternative method to override the scope namespace is by specifying a custom `alias` name in the module/component `scope` provider:

```ts
provideTranslocoScope({ scope: 'todos', alias: 'customName' })
Expand Down

0 comments on commit f3fbc17

Please sign in to comment.