Posts by Flavio Misawa • 383 points
15 posts
-
2
votes2
answers1671
viewsA: Validate input type="number" >= 1 with Angular
I think you’d better use the min=1 attribute in the input: <input type="number" min="1" name="qtdPormotores" ng-model="cadastro.qtdPormotores" placeholder="Quantos promotores coordena?" required…
angularanswered Flavio Misawa 383 -
2
votes2
answers3969
viewsA: How to create a link to run a ". bat" file that is inside the PHP directory?
If you prefer to call via Javascript: <input type="button" value="Click aqui" onclick="window.open('file:///C:pasta/teste.bat')" />
-
0
votes1
answer493
viewsA: Take a facebook profile picture and save it to my database?
I did it this way: FB.getLoginStatus(function(response){ if(response.status == 'connected') { FB.ui(obj, callback); } else { FB.login(function(response){ if(response.status == 'connected') {…
-
1
votes2
answers1709
viewsA: How to get the phone number in Ionic using Cordova or phonegap
I do not know what version of the SDK you are using but from 23 have to ask for permission to read. // Checar permissão function hasReadPermission() {…
-
0
votes3
answers547
viewsA: wp_enqueue_script does not work
Try to do it that way: wp_deregister_script( 'jquery' ); // remove o registro se houver wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"), false);…
-
1
votes1
answer33
viewsA: How to correctly add more than one ion-radio to a template?
I already had this problem and I managed to solve by simply putting the name property in the ion-radio. <ion-radio ng-repeat="menu in config.menu" ng-value="menu.value"…
-
0
votes1
answer136
viewsA: Load json on demand
Puts a | limitTo: qtde ng-repeat and creates a button to increment as the person clicks: controller $scope.qtde = 20; $scope.carregarMais = function () { $scope.qtde += 20; }; $scope.dados = dados;…
angularjsanswered Flavio Misawa 383 -
1
votes1
answer106
viewsA: ng-bind-html removing style
Try to use the $sce.trustAsHtml() in the controller, not to lose CSS.
-
3
votes2
answers305
viewsA: How to make an ngRepeat without a parent element?
It’s like that: <table> <tr ng-repeat-start="item in list"> <td>I get repeated</td> </tr> <tr ng-repeat-end> <td>I also get repeated</td> </tr>…
-
1
votes1
answer339
viewsA: Angularjs - select values according to other select
You need to set an ngChange for when the value of the first select is changed. <select ng-model="marca" ng-options="marca.id as marca.nome for marca in marcas"…
angularjsanswered Flavio Misawa 383 -
0
votes1
answer41
viewsA: xeditable Row with 2 forms
Tries to put these attributes into your inputs: class="editable-click" ng-click="$form.$show()" e-ng-blur="$form.$hide()"
angularjsanswered Flavio Misawa 383 -
1
votes1
answer22
viewsA: Templateurl according to object property
I think that’s what you want -> here
-
1
votes1
answer206
viewsA: How to receive Angular data in a PHP (route) file
The Angularjs is a client-side framework, and as you may know PHP is server-side, so this is not: $title = '{book.title}}'. You have to pass $http this value to PHP ->…
-
2
votes1
answer452
viewsA: Store user data after login Angularjs
There are two options that would be: -use $rootScope -> http://docs.angularjs.org/api/ng.$rootScope -use services -> http://docs.angularjs.org/guide/services I recommend using the service…
-
3
votes1
answer240
viewsA: Angularjs google Chart with dynamic data
Try doing it this way: app.controller('MainCtrl', function($scope) { var avaliacoes_descTipo = ["1", "12", "13"]; var avaliacoes_quantidade = [1,2,3]; var val = []; var i; var val1 = [];…