Posts by Fábio Duarte • 341 points
19 posts
-
-1
votes1
answer584
viewsQ: Copy code snippet, modify and paste into another Div
I am structuring an experimental system where when clicking a button it copies what is selected (in this case a snippet in html) as the below: <section> <h1> titulo </h1>…
-
1
votes1
answer319
viewsQ: Replace Tag by php code
Hello, I wonder if there is a way to do via php what sublime text does with snippets. I need for example to replace a tag with a pre-formatted code. Type: {{repete start}} <div…
phpasked Fábio Duarte 341 -
1
votes1
answer226
viewsQ: Javascript show several div'’s in different time intervals
my question is about how to make various elements appear with different classes and times. The idea is to do as the Facebook Live interaction. The Code is as follows:: <ul class="reactions">…
-
1
votes3
answers417
viewsQ: Access different objects from a Json with Angularjs
I need to list all the "posts" of this Json, but I’m not sure how to access it. I’m trying like this:ng-repeat="post in posts" but it returns me only one information, because I need to access the…
-
0
votes2
answers869
viewsQ: Passing a controller variable to a service
angular.module('myApp').controller('paginasCtrl', function($scope, CarregaItens) { function carregaPaginas () { CarregaItens.getPaginas() .success(function (data) { $scope.paginas = data; }) };…
-
1
votes1
answer323
viewsQ: Foreach inside the while on the Json exit
I’ve been searching for days how to do a foreach inside a while to print in the json the data related to that query. My scenario is this: <?php require_once('../Connections/db.php');…
-
0
votes1
answer184
viewsQ: Server in Gulp and Grunt
I’ve been doing some research, but I don’t think I’m asking the right questions. I want to use Gulp instead of Grunt but how do I run a "Grunt server" using Gulp? Because Gulp’s watch has nothing to…
-
0
votes1
answer652
viewsQ: Angular Search Result in another view
I have a search form with 2 selects and 1 Submit: <select ng-model="marca" ng-options="marca.nome_marca for marca in marcas" ng-change="changeMarca()"> <option value="">Selecione uma…
-
3
votes1
answer578
viewsQ: Filter no ng-repeat filter the parameter I passed in get
Hello, I am passing a parameter through my route and need to rescue records with this parameter through an ng-repeat. $routeProvider.when("/detalhe/:placa", { templateUrl : 'view/detalhe.html',…
-
2
votes2
answers697
viewsQ: Sorting objects in a Json without id in Angularjs
How can I sort the display of a Json object array in Angular, ng-repeat? orderBy? and this json has no id to do this ordering, I would like to be able to sort it by sequence of "last added".…
-
1
votes1
answer585
viewsQ: Copy the contents of a Json via PHP and send to the server
It is possible via PHP copy Json content from a page (an API that generates a json dynamic) like this http://www.folhacar.com.br/frontendnovo.php/api/listMarcas and save to a directory within my…
-
1
votes2
answers471
viewsA: Extract certain data from a Json array
Solved. In case anyone needs this below: <div ng-repeat="dado in x.opcionais"> {{ dado.opcional_nome }} </div>…
-
0
votes2
answers471
viewsQ: Extract certain data from a Json array
I have taken a Json from an API that returns this result: [ { "marca_id": 4, "modelo_id": 2708, "versao_id": 65344, "cor": "Azul", "opcionais": [ { "opcional_id": 6, "opcional_nome": "Airbags" }, {…
-
0
votes1
answer99
viewsQ: 2 Controllers with the same API
my knowledge in angular is little yet and I have doubts even a little dizzy, but come on hehe. I need a controller that shows recent records (8 last) and another with a general list (of 20 items).…
angularjsasked Fábio Duarte 341 -
0
votes2
answers395
viewsQ: How to extract only 1 image from Json?
Hello, I need to extract only 1 image of this Json. Here is my angular code to pull the records from the api via get. var app = angular.module('myApp', []); app.controller('carrosCtrl',…
-
1
votes2
answers8131
viewsQ: Display content from a JSON using PHP and separate fields
I have the URL of an API that generates a JSON. I have this code below, however I need separate fields for me to be able to create while of the items and to separate type echo $row['nome_marca'] and…
-
4
votes1
answer388
viewsQ: Error importing Dynamic Json via Angularjs
Hello, I’m having trouble importing this Json and others, I don’t know what I might be doing wrong in that... <html> <head> <script…
-
2
votes1
answer163
viewsQ: Angular in PHP page read an API generated in php
I’m talking about this example: <div ng-app="myApp" ng-controller="customersCtrl"> <table> <tr ng-repeat="x in names"> <td>{{ x.Name }}</td> <td>{{ x.Country…
-
3
votes2
answers521
viewsQ: Is there a way to set up a Domain Record in the.br registry for a particular URL folder?
For example: I will register the site www.fulanodetal.com.br and I would like when accessing this domain to display the site www.meusistema.com.br/usuario/11 I have tried using iframe, Frameset but…
dnsasked Fábio Duarte 341