There is a generated value called "pageId" on the page, which is added inline in a script tag.
<script>
var pageId = @Model.Id
</script>
Now, I need to utilize this value in some Typescript (Angular App), but I am encountering an error stating that it is not defined. Is there a way for me to define it so that it is assumed to be present on the page?