Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ng-if not work #25

Closed
krelfallahhichem opened this issue Jan 11, 2016 · 4 comments
Closed

ng-if not work #25

krelfallahhichem opened this issue Jan 11, 2016 · 4 comments

Comments

@krelfallahhichem
Copy link

this example not work with me (when i use ng-if condition in td tag) :
<td ng-if="item.etat == true">running</td>
i need help.

@ekokotov
Copy link
Owner

Please show me the whole your example. Dataset and your template

@krelfallahhichem
Copy link
Author

this is my table

<table object-table
                data="groupes" 
                display="10" 
                headers="N°, Code, Formation, Date début, Effectifs, Etat, Enseignant" 
                fields="id_groupe, code_formation, libelle_formation, date_debut_groupe, nbr, etat_groupe,nom_enseignant,prenom_enseignant"
                sorting="simple"
                resize="true"
                search="true" >
                <tbody>
                    <tr  ng-click="$owner.alleragr(item.id_groupe)">
                        <td>{{item.id_groupe}}</td>
                        <td>{{item.code_formation}}</td>
                        <td>{{item.libelle_formation}}</td>
                        <td>{{item.date_debut_groupe | date:"dd-MM-yyyy"}}</td>
                        <td>{{item.nbr}}</td>
                             <td ng-if="item.etat_groupe == true">EN COURS</td>
                            <td ng-if="item.etat_groupe == false">TERMINE</td>              
                        <td>{{item.nom_enseignant}} {{item.prenom_enseignant}}</td>           
                    </tr>                                        
                </tbody>
            </table> 

etat_groupe is boolean
it's work correctly with normal html table and with object-table not work

@ekokotov
Copy link
Owner

Ok. fixed this thing in new release. Please update library to 0.2.1. And follow this example. (just add non-bindable)

@ekokotov
Copy link
Owner

Ok. fixed this thing in new release. Please update library to 0.2.1.

2016-01-12 8:22 GMT-08:00 Hichem notifications@github.com:

this is my table

{{item.id_groupe}} {{item.code_formation}} {{item.libelle_formation}} {{item.date_debut_groupe | date:"dd-MM-yyyy"}} {{item.nbr}} EN COURS TERMINE {{item.nom_enseignant}} {{item.prenom_enseignant}}

etat_groupe is boolean


Reply to this email directly or view it on GitHub
#25 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants