Posts by Gabriel Berlanda • 301 points
16 posts
-
0
votes2
answers549
viewsA: React-Native code error
Bruno, your error is in the text Login button, if your project is in React-Native, you should encapsulate your texts within a text tag, for example the React Native even, then fixed would be:…
react-nativeanswered Gabriel Berlanda 301 -
1
votes1
answer85
viewsA: How to load a method as soon as the page is loaded ? Angularjs
You can simply perform the function at the end of the file $scope.carregarPagina = function() { //implementação do metodo } //...... seus outros métodos e atributos $scope.carregarPagina(); Or use…
-
1
votes1
answer148
viewsA: Component Angular Autocomplete
Gustavo, you can add default value using the ngModel directive, where you will assign a variable to receive the value of the Component, this variable can be started with the default value in your…
angularanswered Gabriel Berlanda 301 -
1
votes1
answer152
viewsA: Create a new template for each N *ngFor elements
You have to split turn your item array to a Matrix Example: ['a', 'b', 'c', 'd', 'e']; should turn [ ['a', 'b', 'c', 'd'], ['e'] ]; After transforming your array into an array, you can add an ngFor…
-
0
votes2
answers438
viewsA: Save data clicked on a JSON
Apparently your problem is in the code to pick up the desired device, I will recommend you some modifications. In html: <div ng-repeat="x in dados"> <h1>{{x.nome}}</h1>…
-
2
votes1
answer274
viewsA: How to copy an html block when you click a button in Angular?
You can use the *ngFor directive to solve your problem. You should keep the items you want to display in an array type variable, and use the *ngFor directive to iterate those items and add them…
-
0
votes3
answers1468
viewsA: Add a div by clicking the button
I’m guessing you want to add a new outfit every time you click a button, you could have in your angular controller a list of added equipments. Ex: $scope.equipamentos = []; And when you click the…
-
0
votes1
answer204
viewsA: Validating whether or not there is a user with Firebase
You are only treating the error scenario, with the catch... Since it’s a prop you should also treat what to do if it works out in the "then". Ex: firebase.auth().signInWithEmailAndPassword(email,…
-
0
votes2
answers1376
viewsA: "checked" from "ion-radio" does not work
Note that inside your ion-list has an ngModel which is where the value of the selected option will be stored, each ion-radio has a value, for you to initialize the Component with a selected one,…
-
0
votes2
answers1709
viewsA: Write and print data in an Arraylist
Isadora, you always get null, because when adding the person in the list, you always add a new person instance that is empty. listaPessoa.add(new Pessoa()); The correct way to perform this method…
-
4
votes2
answers86
viewsA: What is wrong with this method?
What is wrong in this method, is that you are going through the "go" if the list is empty, so it will not fall in condition ever. What you should do is review the first IF the correct one would be:…
javaanswered Gabriel Berlanda 301 -
0
votes1
answer1892
viewsA: How to call one function inside another in Java for Android?
Mikhael, because you need onClick in editText? If every time the user types something your TTS should read it, I believe you don’t even need to control the textChanged System, you could call the…
-
1
votes2
answers73
viewsA: Creating a Mysql default date string from a Java Date
You can use Simpledateformat to do this. SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date date = new Date(); String formatedDate = dateFormat.format( date ); You can…
-
1
votes1
answer344
viewsA: What is the difference between domain logic and application logic?
In the DDD, we have the domain classes, which are our entities, our objects, and we also have the service classes. The domain class is responsible for serving the business, is where it has entity…
-
0
votes1
answer304
viewsA: ion-toggle how to fire event when scoring
Midana, Use ion-toggle Event Binding which is ionChange ie. <ion-toggle toggle-class="toggle-positive" [(ngModel)]="dispositivo.Status" [ionChange]="acao(dispositivo)"></ion-toggle>…
-
0
votes3
answers2702
viewsA: Dynamically populated option select list selected with Angularjs
Ivan, Your json is coming value as a string, check whether your Idcategory is a string or an integer, if they are of incompatible types you will either have to change your service and bring values…