Posts by celsomtrindade • 8,038 points
240 posts
-
3
votes3
answers2578
viewsA: Pass Token by header to each Angularjs request
The way I currently do it is to automatically load it at the beginning of the factory and then just make the request where I need it. The only difference is that I use the localStorage instead of…
angularjsanswered celsomtrindade 8,038 -
2
votes2
answers1104
viewsA: Best Way to Perform Dependency Injection on Angular JS
What I usually do, since they are modules, that is, I will use a module only in a certain area of my application, is to use the module ocLazyLoad. It provides loading of my modules (or modules I…
-
1
votes1
answer89
viewsA: Problem in the execution of the task with Gulp & SASS?
I confess I never used gulp, but if the logic is the same as grunt, I believe you should start by inserting the variable file before inserting the other files. Try the following: gulp.src([…
-
1
votes1
answer334
viewsA: How to pass a picklist (bootstrap) via POST (ajax)
Well, first of all, I recommend you remove the data setting from within $http, use a variable instead, like this: var dados = { urlCertificado : $scope.certificadoIncluirAlterar.urlCertificado,…
-
1
votes2
answers1495
viewsA: How to put Auto Adjustable background?
Instead of using 100% 100% use cover. background-size:cover; -webkit-background-size: cover; -o-background-size: cover; -khtml-background-size: cover; -moz-background-size: cover; The difference is…
-
13
votes3
answers1372
viewsQ: What is "Object-oriented" and what other methods?
I work a lot in AngularJS (Javascript) and with version 2.0 knocking on the door, which will have as main change the use of ECMAS6 I read a lot about Object-Oriented Programming. If you can keep the…
-
2
votes1
answer855
viewsA: Picklist (multi-select) Component does not update data. Bootstrap + Angularjs
Well, the dice manipulation esquerda <-> direita is relatively simple. In theory you need to do the following: Have an empty array; Have a function to receive the selected company and move to…
angularjsanswered celsomtrindade 8,038 -
0
votes3
answers1572
viewsA: Create directive for mask
You can make the function run whenever the user type, or, put a timeout to run forever n seconds after he stopped typing. Which to use then? If you want the user to see the change in real time, use…
angularjsanswered celsomtrindade 8,038 -
0
votes2
answers598
viewsA: How to list parents and city in Anglican?
There is, and it’s very simple. Just do this: <tr ng-repeat="dados in meuScope"> <td>{{dados.pais}}</td> <td>{{dados.estado}}</td> </tr> Where meuScope is the…
-
1
votes2
answers5893
viewsA: Image Transition with css3 - Keyframes
The problem is because you need to change the values of time and % of the keyframe to match the number of images and animation and transition time you want to use, which is what the tutorial…
-
2
votes1
answer332
viewsA: How to delete data using angular, php and ui-route?
You need to inform PHP which ID should be removed, for that you need to SEND the angular ID to PHP. Use $http.post instead of $http.get. Another observation, the method .then() will only work if you…
-
6
votes1
answer2541
viewsA: How do I leave a gray-tinted image in cross-browser css?
Problem: There is currently no easy way to get property results filter in IE versions. See which browsers have support: http://caniuse.com/#search=filter Alternatives: Despite the appetites, there…
cssanswered celsomtrindade 8,038 -
1
votes1
answer910
viewsA: Creating a controller in Angularjs
Your problem may be due to an injection failure of the parameter. Try using $routeParams in the injection of controller, thus: app.controller("editarPaisController", function ($scope, $http,…
angularjsanswered celsomtrindade 8,038 -
9
votes2
answers7334
viewsA: How to redirect page in Angular?
The use of state should not be used to redirect to a URL. As the name itself says, $state.go -> go to the state. I mean, instead of: $state.go("/usuario"); Use: $state.go("usuario"); //exemplo do…
-
2
votes3
answers1931
viewsA: Breaking Bootstrap Columns
How you don’t want to use the class row to group the lines, the correct thing is to assign a height to the divs right-hand column. <div class="col-md-6 minhaDiv></div> .minhaDiv {…
-
1
votes1
answer281
viewsA: Difficulty updating data with angular and php
Your problem may be in the method used in $http, in your case you are using PUT. In the past I had problems using it also because there are settings and (some cases) server limitations that prevent…
-
2
votes1
answer951
viewsA: Page . html does not want to appear
For the Ui Router to work, the url entered in the address, must be equal to url defined in .state. In your case, you still have a number after, which I believe is the id user, so you will still need…
-
3
votes1
answer2253
viewsA: How to clear form with Angularjs?
When I use a form and I need to reset it after use, clean and return to the original state, I use the $Scope.form definition, thus using $Scope.form: $scope.form = []; $scope.addEmpresa =…
-
1
votes1
answer440
viewsA: Angularjs: Change scope in ngRepeat
One point to be noted is the use of self. I could be wrong, but as far as I know, in the controller we use this or, more commonly used through syntax vm thus: var vm = this; But it would be…
-
4
votes1
answer11340
viewsA: Floating Div in Bootstrap 3 accompanying Scroll
As you are using Bootstrap, take a look at the tool affix http://getbootstrap.com/javascript/#affix She’s responsible for doing this div "Floating". Here is another example:…
-
0
votes2
answers261
viewsA: Do not show 1 row of empty array using Angularjs Asp.net mvc?
This happens because you created the array and already created an empty element, see: $scope.numeros = [ { nJogo:"", valor:"" } ]; It would be right to do it this way: $scope.numeros = []; So, when…
-
1
votes2
answers297
viewsA: Why does href not work as desired?
From what I understand, you open a single off-canvas for only then popular them. I think your problem is just a matter of order. 'Cause you’re letting him into the ng-repeat, that is, you are…
-
3
votes1
answer309
viewsA: Linear-gradient and browser compatibility
For the old browsers, you just set a background solid, without the gradient, thus: background: #444; //ou outra cor que você queira background: -webkit-linear-gradient(left, #0260a9, #444);…
-
1
votes1
answer1920
viewsA: Pay Notification API not executed
After a lot of headache, what solved my problem was this code: header("access-control-allow-origin: https://sandbox.pagseguro.uol.com.br"); Logo added to the opening tag PHP. Just be aware for url…
phpanswered celsomtrindade 8,038 -
2
votes1
answer1920
viewsQ: Pay Notification API not executed
I am using Pagseguro to manage payments, I use the method lightbox, where I can do everything, including payment (all this in sandbox). But when receiving notifications, the file is not being…
phpasked celsomtrindade 8,038 -
0
votes2
answers891
viewsA: How to change the class of a :after in Angularjs using ng-class?
The ng-class works through a condition, it needs an expression to apply or not a certain class, for example: <div class="minhaDiv" ng-class="{'classeSecundaria': meuValor >…
-
1
votes1
answer364
viewsA: I can’t style and center the menu text
Well come on. Before centering the text, let’s create the spacing between them. For this you can use the property padding, it will create an internal space, that is, within a space within itself li.…
-
1
votes1
answer61
viewsA: Md-slider, how to know when it was finished?
I’ve never tested with Angular Material, but if the logic is the same, you can use a ng-blur or ng-change. Both perform a function after user interaction with the field. The difference is that the…
-
5
votes1
answer550
viewsQ: Compilation/Minification of HTML, CSS and class names
On the CSS side I already do the compilation and minification of the CSS file. Doubts began to arise when I noticed that some sites work with a type of Compile including in`HTML files. In other…
-
0
votes1
answer58
viewsA: I can’t fix menu and site header
In your css apply these properties to your header: header { position:fixed; //deixa o elemento fixo na pagina top:0; //diz qual distância do topo ele ficará fixado, nesse caso, uma distância igual a…
-
17
votes2
answers738
viewsQ: Why use/not use * box-Sizing?
I’ve read a lot about debates between using or not using the property box-sizing: border-box; as follows: * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } I…
-
2
votes1
answer600
viewsA: Handling of $http’s replay.get
The answer comes within a Object called 'Records'. Try to do so: $scope.names = response.data.records; Or else directly into your ng-repeat thus: ng-repeat="x in names.records" As for your other…
-
10
votes2
answers781
viewsQ: What functions are form tags in HTML5?
The question refers to tags not so commonly used, for example, <fieldset>, <legend>, <label> and <optgroup>. Recently I had to do extensive work involving registration forms…
-
3
votes4
answers541
viewsA: Navigate through screens carrying information
The use of $rootScope to do what you seek. Services (service and factory) of AngularJs are there for that. Why not use $rootScope? $rootScope, as the name says, is a scopo of root, common and…
-
2
votes1
answer278
viewsA: Block Scroll on one side of the grid
To leave fixed: .class { position:fixed; top:0; //distancia em px do topo left:0; //distancia em px da lateral esquerda - ou right:0; para lateral direita bottom:0; //distancia em px do rodapé } To…
-
6
votes1
answer696
viewsQ: Angularjs duplicating (briefly) ng-repeat list while making new insertions in the bank
I’m working with an application where in a view I own the product register of a company, or its customers, suppliers, etc. Each view meets a specific area, but each view works with diverse data and…
angularjsasked celsomtrindade 8,038 -
6
votes6
answers8730
viewsA: How to create geometric shapes using CSS?
Using CSS only, this is as much as you can achieve: http://jsfiddle.net/8o4f01pg/ The estate skew is that will 'distort' the div the way you want it. .skew{ transform:skew(40deg); } .skew p {…
-
2
votes1
answer289
viewsA: The difference between cursor: no-drop and not-allowed in CSS
In theory: not-allowed: Does not allow an action to be executed/called. no-drop: Informs the browser (and the user - through the visual element) that it is not possible to perform a drag n' drop…
-
9
votes2
answers1988
viewsA: CSS Reset or Normalize?
The purpose of the reset files to the css are nothing more than, as the name already says, reset the default style that some elements have. For example, buttons have a gray background, lists have…
-
3
votes1
answer169
viewsA: How to mount grid in Bootstrap 3 for small images
Its problem is because the bootstrap has a grid limit of 12 columns. That is, you won’t get more than that using the bootstrap grid. One solution would be to use a Calc to do this split. Let’s say…
-
2
votes5
answers3991
viewsA: Update list after push Angularjs
Your problem cannot be solved in the way you intend, as you are involving some variables that are independent of the mailing list. The list is stored on the client, that is, only on his computer.…
-
2
votes1
answer162
viewsA: Misaligned
Try something like that: .nuvem { display:inline-block; width:100%; margin-bottom:20px; }
cssanswered celsomtrindade 8,038 -
2
votes1
answer186
viewsA: Angular factory to insert data into the database
Well, first you need to inform php which function you want to call. The method I use for this, is through a action, where my link on .factory would look like this: var _getContasEntrada =…
-
3
votes2
answers634
viewsA: How to Remove Input Image Edge
Your problem is because the input type="image" expects an attribute to exist src, that is, the image definition should be done directly on the button, which causes the :hover does not have the…
-
2
votes1
answer856
viewsA: How to separate HTML files into a MVC architecture?
I recently broke my head too much to solve this same problem. I wouldn’t say solve, but find the best organizational/structuring method for my workflow (and my need for the moment). 1 - Structure of…
-
0
votes2
answers2417
viewsA: Angularjs $http.get
What I would recommend in this case would be to use 2 separate functions. One for each $http that you need to do. This will give you more freedom, including in reusing the code. Getting kind of like…
-
2
votes2
answers599
viewsA: menu with the selected option of another color in Angularjs
As you intend to do this in the menu, there are more 'practical' ways to get this result. If you are using ui-router, can read more about it here, just insert a row with the following expression…
-
7
votes2
answers1114
viewsA: Put Dollar " R$ " in angular
You can make this view directly in your view via code: {{meuvalor | currency: 'R$'}} This code would be to be used at the time it is displayed. It will take care to leave its value in currency…
angularjsanswered celsomtrindade 8,038 -
2
votes1
answer695
viewsA: Bootstrap Sass, which is the best way to use to avoid attribute redundancy
This kind of question, in my view, depends on many factors in your project. But, like you, I also had this doubt when I started dealing with css in bootstrap. Everything is much easier, but at the…
-
12
votes2
answers5484
viewsA: Apply css to all elements except some specific ones
As far as I know, there is no way to "select" a 'Parent' or 'Child' element through the property :not, other than a selector :first-child, for example, or :nth-child(n) who can make that selection.…