Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ng-click and ng-model - what comes first?
Message
De
22/10/2014 07:03:57
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01609730
Message ID:
01609751
Vues:
48
>>>Thanks a lot in advance.
>>>
>>>UPDATE. The way I solved the problem is to remove ng-click and use the following code instead:
>>>
>>>
>>>$scope.$watch('showFinalized', function () {
>>>                    if ($scope.currentAccount && !$scope.isNew) {
>>>                        getAccountInvoices($scope.currentAccount.acctNameHash);
>>>                    }
>>>                });
>>>
>>>This seems to work well. Not sure if this is a good practice or not, though.
>>
>>If it works... that should be good enough for you... When have you ever cared about best practice?
>
>I do care about it. Looks like you're on the roll and jump into each of my threads last few days. Do you know the answer to my question?



You may think you do, but the fact of the way you work, simply shows you don't. Grabbing any solution you can find that works and cobbling them together to make a program, is not worrying about best practice at all, but about simply getting something to work.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform