I solved it simply using the ngIf directive... Something like below:
<div>
<div *ngIf="isInitialized == true;
then initialized
else initializing">
</div>
<ng-template #initializing>Application Initializing...</ng-template>
<ng-template #initialized>
<div>
<location-tree></location-tree>
<units></units>
</div>
</ng-template>
</div>
On Wednesday, August 2, 2017 at 11:50:50 AM UTC-7, Reza Razavipour wrote:
>
> This is very helpful. I have looked at routes and the thing I don't
> understand is the following:
>
> So I need to have a component that corresponds to path:''.
>
> This component will load the config file and based on the content will
> call another route that actually displays the "first screen" with all the
> correct components displayed.
>
> All is good so far. What I am struggling with is what would the html file
> look like for that first component, the one corresponding to path ''?
> Show the correct components when the config file is loaded?
>
> thank you.
>
>
>
>
>
> On Thursday, July 13, 2017 at 8:04:17 AM UTC-7, Reza Razavipour wrote:
>>
>> I have an app that should display nothing on the page until a config file
>> has been read.
>> Once the config file is read, the list of components that should be
>> displayed is determined.
>> This will impact the layout of the page also...
>>
>> Generally speaking, how would the ng directives, (*ngIf, etc..) look like
>> in the app and component htmls?
>>
>> I have attached a simplified version of my app.
>>
>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.