Posts by gustavohenke • 660 points
6 posts
-
1
votes1
answer429
viewsA: Express Validator Custom - Nodejs
Hello! Express-Validator maintainer here :) You must use Privileges to make your Asynchronous Validator express-Validator. It would look something like this: .custom((emailRegistro) => { return…
-
0
votes5
answers5072
viewsA: jQuery, duplicate click event
Simply add a lock, and leave your element disabled in the interface: var salvou = false; $("#mSalvar").click(function(){ if (salvou) { return; } man.bSalvarClick(); $(this).prop( "disabled", true );…
-
1
votes2
answers179
viewsA: Fetch new value from a variable in Localstorage after returning to the view using $state.go();
Since you haven’t shown where the Entities controller is being used, I believe you may be in a different state than app.home. Therefore, I believe that what you want is the option reload of the…
-
6
votes1
answer10841
viewsA: Angularjs Difference ng-show and ng-if
ng-show/ng-hide Both work with the CSS property display. If the expression of ng-show return false or ng-hide return true, then the element will be hidden using display: none. In the contrary cases…
angularjsanswered gustavohenke 660 -
2
votes2
answers329
viewsA: Test results do not appear in browser - Grunt-karma
You are using the Require.js plugin, so it will be necessary manually initialize the tests. If you are not going to use Require.js, I recommend that you remove references from your configuration…
-
40
votes6
answers20110
viewsQ: How to center the content of an element vertically?
I’m trying to center vertically the content of an element that has position: absolute. I was able to move the content from half down container, however, from half up the space is "left". How can I…