Umbraco 15: How to use UmbContextToken
# help-with-umbraco
p
Umbraco 14+ has UmbContextToken. It can be created providing context alias and api alias (if you look at the constructor) Context alias - provides ability to consume context by it. For what we need apiAlias?
l
If you don't need the
apiAlias
, you can leave the parameter empty, or if you need to add a
discriminator
(for more advanced usage), then you can see the
apiAlias
as
undefined
.
4 Views