Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sharing same views (with controllers) for several areas
Message
De
07/05/2015 04:22:06
 
 
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01619445
Message ID:
01619490
Vues:
29
>>>>Your first ui-view is not named.....
>>>
>>>I know it's not named. This is to allow a loop like this:
>>>
>>>
>>><tabset vertical="true" type="pills">
>>>                                    <tab ng-repeat="tab in tabsViews" select="selectView(tab.index)" ng-show="tab.isVisible"
>>>                                         class=" {{tabsViews[tab.index-1]['invalid'] ? 'invalid-tab': 'valid-tab' }}">
>>>                                        <tab-heading>{{tab.title}}</tab-heading>
>>>                                    </tab>
>>>                                </tabset>
>>
>>I don't understand what the tabset has to do with it. Your 'edit.invoices' state defines two views but your markup only has a placeholder for one....
>
>I have detail view also in the markup now.

And ?

I also noticed that your 'edit.invoices' state has both a url and named views. I assume you are aware that if a 'views' object is defined then ui-router will ignore the url ?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform