We help IT Professionals succeed at work.

NVC Angular

ITsolutionWizard
on
I copied the following codes from mvc/razor angular c# web app. I would like to learn that usually how the {User.FirstName} got the data source from.  

Just hope to get someone who know about mvc/angular.

Thanks



<ul class="nav navbar-nav" id="centeredInNav"><li><a href="tel+:112222">for questions Call 
                {{User.FirstName}} {{User.LastName}} at {{User.Phone | tel}}
            </a></li></ul>

Open in new window

Comment
Watch Question

SILVER EXPERT
Most Valuable Expert 2017
Distinguished Expert 2019
Commented:
The answer is in your component file (.ts) - this is the view

The value for User is defined in the component - the view just displays the result. To answer your question we would need to see the Typescript component file that loads this template.