Posts by Walter Gandarella • 636 points
24 posts
-
1
votes1
answer1826
viewsA: Sharing module globally at Angular
No, you don’t have to. This is the right even form of the angular work modularization. If you need the global Components, you always have to import the module. What we often do in Angular projects…
angularanswered Walter Gandarella 636 -
0
votes3
answers3288
viewsA: error message Cannot find a differ supporting Object '[Object Object]' of type 'Object'. Ngfor only
The problem is that ngFor expects an array, and is receiving a Response object. The error is here: ngOnInit() { this.restaurantService.restaurants() .subscribe(restaurants => this.restaurants =…
angularanswered Walter Gandarella 636 -
0
votes1
answer84
viewsA: Join Angular Projects
The best way in this case is to work with JWT authentication. This authentication would not use recorded sessions and thus could be interoperable between applications: The login app validates the…
angularanswered Walter Gandarella 636 -
3
votes1
answer2710
viewsA: Access another Component function (Angular5)
Probably the modal is injected dynamically and is not always present to work with events between father and son. For your problem, I suggest working with Global Events, this type of event, known as…
angularanswered Walter Gandarella 636 -
0
votes2
answers48
viewsA: Selector does not take another selector
You’re doing it backwards. That way it really won’t work. The + in the css rule means "the next element immediately after". In this case the . cube no longer has any element after it is you use the…
-
5
votes2
answers711
viewsQ: Where to put the business rule at the angle?
I love programming web and mobile apps with Angularjs. But I’m tired of spreading my business rules by controller and factorys. I miss being able to create my objects with their respective…
-
0
votes1
answer102
viewsQ: Best way to read Angularjs in an Ionic app
I’m with a question of apps architecture. I have an IONIC project where the app saves some basic data in Storage location so you don’t have to ask for user login every time it opens. But this data…
-
0
votes2
answers681
viewsQ: Error in injection of angular module dependencies
I have the module of my application: angular.module('app', ['app.controllers','app.routes','app.services']); I have my service module: angular.app('app.services', []) .factory('usuarioService',…
-
1
votes3
answers3098
viewsQ: How to use <f:setPropertyActionListener> with Passthrough Elements in JSF 2?
I am using Passthrough elements in my JSF project, and I need to do something similar to this: <h:commandLink action="#{meuBean.acao()}" value="clique aqui"> <f:setPropertyActionListener…
-
0
votes1
answer688
viewsQ: Navigation to pages in subfolders in JSF 2 does not work
I have the following problem: I have a hierarchy of folders where I separate my web pages from the project: Web |- Acoes | |- usuariosAcoes.xhtml | |- cadastrarAcao.xhtml |- usuarios | |-…
-
1
votes4
answers10030
viewsA: Mysql error 1054 Unknown column
I’d do it like this and work here: $count = "SELECT COUNT(*) FROM author WHERE name LIKE '{$consulta->letter}%'";
-
2
votes2
answers139
viewsA: How to send object by radiobutton?
I would do so <input id="but" type="radio" value='{"nome":"um nome","sobrenome":"um sobrenome"}'> and javascript var radio = document.getElementById("but"); radio.addEventListener('click',…
-
2
votes1
answer161
viewsA: Changing a DIV background in iframe
Yes it is possible and, if the image should not be saved to be displayed every time the user accesses the page, really do not need to upload... $('#arquivo').change(function(e) { var _arq =…
-
1
votes1
answer774
viewsA: Unexpected CASE (T_CASE)
The problem is that: case 'blog': case '': doesn’t work that way. If your goal is to set the 'blog' option to default if no option is given, use the method default, thus: case 'blog': default: //…
phpanswered Walter Gandarella 636 -
2
votes1
answer246
viewsA: Request Cors for webservice
In your $.ajax add the option headers: { 'Access-Control-Allow-Origin': '*' },
jqueryanswered Walter Gandarella 636 -
0
votes1
answer92
viewsA: Mobile app with error
Here, in date, you don’t need to convert json to string. data: { nome: nome, sobrenome: sobrenome, sexo: sexo, email: email, login: login, senha: senha } Plus, I don’t see a mistake…
-
0
votes3
answers84
viewsA: String Replacement for Array
If you already have an array of values, the easiest thing to solve in a row is to use the symbol itself as a key. Ex.: $arr = array("$"=>"dollar symbol", "."=>"dot", ","=>"comma"); $simbolo…
-
1
votes1
answer67
viewsA: The code does not respect ifs
In fact you are updating the page when you use META REFRESH. Then when the script stops in the second IF, it reloads the page d displays the alert. However, the page runs again, but this time there…
-
2
votes1
answer170
viewsA: Url forwarding
Your mistake is here in this code: //redirect to real list_route if($this->uri->uri_string != $this->learn->url_format_category($category, $lang_domin)) {…
-
1
votes2
answers432
viewsA: PHP - problem with Unlink
From what I understand, unless you upload an image with the same name as the one already on the server, the images will never be "changed", since the name will be different, coexist in the folder.…
phpanswered Walter Gandarella 636 -
1
votes1
answer107
viewsA: Virtual server EC2 receives requests but cannot access another host
For those who had the same problem as me, I went deep until I discovered that the nameserver was set to Amazon ip. So I edited the /etc/resolv.conf and put the google nameservers nameserver 8.8.8.8…
-
0
votes1
answer107
viewsQ: Virtual server EC2 receives requests but cannot access another host
I have a virtual machine on Amazon AWS with Ubuntu where I installed Apache2, PHP5 and Mysql. It was all running well, well configured, my site working very well on it. Until suddenly the virtual…
-
20
votes6
answers32253
viewsA: What is the best way to create a PHP login system
With more and more reports of hacking activities in the news, developers are looking for the best alternatives to ensure greater security on their websites. If your site has a member system, it may…
-
1
votes1
answer903
viewsA: How to make one file redirect to another?
The solution is simple. In the link that will open the file, use target="_Blank" <a href="aqruivo.xxx" target="_blank">download</a>