Hi every one

I have the follow model in angular:

* sacAppController.MainModel = {*
*        Process: {*
*            Id: 0,*
*            Label: ""*
*        }*
*    };*

*sacAppController.sacController = function (service) {*
*        var self = this;*

*        self.ViewModel = {*
*            tabs:*
*                [*
*                    {*
*                        id: 1, title: "Lista", viewId: "divViewList", 
model:*
*                            {*

*                            }*
*                    },*
*                    { id: 2, title: "Nuevo", viewId: "divViewNew", model: 
sacAppController.MainModel }*
*                ]*
*        };*
*    };*

And I need to bind to tab content, here is my HTML code:

<ul class="nav nav-tabs">
        <li ng-repeat="tab in src.ViewModel.tabs" class="{'FondoGrisOscuro' 
: src.ViewModel.tabs[$index].id == tab.id }" style="height: 38px; 
text-align: center; width: 125px;">
            <a href="#{{tab.viewId}}" data-toggle="tab">
                <span class="{'active': src.ViewModel.tabs[$index].id == 
tab.id }">{{tab.title}}
                </span>
            </a>
        </li>
    </ul>

And a view Id is this one:

* <div id="divViewNew" class="tab-pane fade in" style="margin-top: 8px" 
ng-model="tab.model">*
*            <div class="row" style="margin-bottom: 1.5%">*               
*                <div class="col-md-12">*
*                    <label 
class="EtiquetaTextoTablaNegrita">Proceso</label>*
*                    <img src="~/img/lado1.png" alt="" onclick=" 
utiAbrePopUpBuscar('Proceso', 'SetValuesProcess', '');return false; ;"/>*
*                    <img src="~/img/limpiar.png" alt="" />*
*                    <br />*
*                    <input type="text" class="CajaTexto" style="width: 
225px;" value="{{Process.Label}}" />*
*                    <input type="hidden" value="{{Process.Id}}" />*
*                </div>*                
*            </div>*
*</div>*

But the tab-content is empty, any idea about how solve this ?

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to