Posts by celsomtrindade • 8,038 points
240 posts
-
1
votes2
answers1074
viewsA: How to do for when click on an item from a menu to receive the corresponding view tab in Angularjs?
The solution using the router could be as follows: .state('tab', { abstract: true, //não permite acessar diretamente esse view, deve ser um child views: { "tab": { controller: 'MeuCtrl',…
-
3
votes0
answers388
viewsQ: Data structure for setting up shop opening hours
First of all, found that doubt, which in fact is similar, but did not seem to involve some criteria I need, such as opening hours after midnight. I’m developing an app where I need to show the…
mysqlasked celsomtrindade 8,038 -
12
votes1
answer2480
viewsA: Load list by parts using Angularjs
To create your function, simply insert a new button and have it call the "load more" function. For example: html: <div ng-click="carregaMais()" ng-if="botaoAtivo">Carregar mais</div>…
angularjsanswered celsomtrindade 8,038 -
1
votes3
answers2251
viewsA: Difficulty adjusting menu and footer in responsive layout
There are 2 ways to get the result you are looking for. Using only css, but you are limited to a certain html/css structure to make it work. Using javascript (with css also), where you have a better…
-
5
votes1
answer1892
viewsA: Show/Hide "Terms of Use" by clicking checkbox
This solution uses only CSS. It’s not the best way to do this, as you are limited to a code structure. A div which contains the text must be immediately after the input checkbox, otherwise it will…
-
1
votes1
answer173
viewsA: Database data does not appear on the screen, using angular and php
That part here: ng-repeat="conta in contas" The second option must refer to $Scope. In your case, it would be: $scope.mostraTodasContasEntradas = data.data; Stuck like this: ng-repeat="conta in…
-
1
votes3
answers29544
viewsA: How do you get it in the headline?
Now that I have noticed that it is a duplicate question, then I will migrate my answer here, since this topic is more developed. Another way to get the result would be: First, if you intend to leave…
-
1
votes4
answers3932
viewsA: How to align 7 elements on the same line?
Another method with no need to specify any width (except for mobile configuration if desired) would be to use ul li with display:table-cell. ul { display:table; width:100%; } ul li {…
-
5
votes2
answers116
viewsA: How to add font to a select?
The font you want to add is Open Sans, the code you are setting is to add the Arial font. That is, you should use a css like this: select { font-family: 'Open Sans', sans-serif; } Edited: I believe…
-
0
votes4
answers1748
viewsA: Return php data to Angularjs
Actually your problem must be happening because you are NOT returning the search result as an array, but rather as a simple sql result, that is, the angular will be able to read, but it would not be…
-
2
votes1
answer66
viewsA: CSS - Display centered text with another side-aligned text
If you can use one position:absolute; can use to align only the div "copyright" on the side. But be careful, because in smaller resolutions, it may be 'above' the centered text. It is important to…
cssanswered celsomtrindade 8,038 -
3
votes1
answer466
viewsA: How to use the same Bootstrap header for two different menus
This doubt is linked to JS and not to CSS. The way to solve this would be by setting a 'name' for each menu. For example: <a class="btn btn-navbar" data-toggle="collapse" data-target="#one">…
cssanswered celsomtrindade 8,038 -
1
votes2
answers416
viewsA: Angularjs - Two functions in one file
You set the $Scope values of the notebook outside of a Function. The way you did, you would need to 'call' it in order to generate the values. I mean, you should do it like this: function…
-
1
votes2
answers2346
viewsQ: Angularjs - File organization for large project
my doubt is not related to codes properly, but on how to better organize the project files. I know that this is a question that has neither the right answer nor the best answer. But as I am…
angularjsasked celsomtrindade 8,038 -
4
votes4
answers1603
viewsA: Doubt about "encrypted code" (obfuscated) in Javascript
He’s a kind of obfuscator, can be done through online service also like this: https://javascriptobfuscator.com/ I’ve seen some that work through npm, for example, but I never got the same result…
javascriptanswered celsomtrindade 8,038 -
1
votes3
answers14256
viewsA: How to make a DIV that increases in size every time you increase content?
All the div's have this behavior as default. They will adjust as needed. What you can do, is set the minimum and maximum size, as Romario Pires commented. This will ensure you a better control of…
-
3
votes1
answer438
viewsA: How to call PHP function in another Angularjs function?
In that case, I recommend that you create a factory I mean, a service. This way, whenever you need this data, whether in this or another controller, you can only refer to it in an easier and modular…
-
2
votes1
answer422
viewsA: Separate login page from other pages that are loaded from ng-view
I do this service using ui-router instead of ngRoute. It is more robust and works better. It is a somewhat complex idea and you will need to adapt this to your authentication mode, which may be (and…
-
4
votes1
answer66
viewsA: Error Warning on console
Your $routeProvider is set wrong, you only need a definition of it, not one for each .when. Try the following: $routeProvider .when("/entradas", { templateUrl: "views/entradas.html", controller:…
-
1
votes3
answers994
viewsA: $Scope Form Angularjs Directive
To communicate the values using the controller, which seems to me to be your case, you can define the value to be passed to the modal through a $rootScope, which would be a global "variable". I…
-
0
votes0
answers369
viewsQ: Angularjs keep $http result cached
Good people, next, I’m putting together an application that involves a lot of navigation and data visualization. It would go something like this: There is a customer table (+500 registered) with…
angularjsasked celsomtrindade 8,038 -
4
votes1
answer659
viewsQ: Angularjs - Modularize a code to be reusable in multiple projects
Next person, I am developing a webapp where I have a very wide administrative area, with several functions. In another project I closed a few days ago, I also requested an administrative area with…
angularjsasked celsomtrindade 8,038 -
0
votes3
answers369
viewsA: Question about loading modules with requireJS and Angularjs
Complementing with the reply of @Pedro Laini I am also using a dynamic load, through the ocLazyLoad. It can be used in conjunction with your route system, being loaded from a resolve. So let’s say…
-
2
votes1
answer472
viewsA: how to make the external div invisible (Hidden), but its interior visible?
For you to get this result, your div id="valores", that has animation and contains the other numbers of the "game" must be inside another div, for you to make the layout control on it, since it will…
javascriptanswered celsomtrindade 8,038 -
3
votes1
answer31
viewsA: Resolution compatibility
Your problem is because the background image will be adaptable to each resolution, which would be impossible to make the markings with an Absolute position. See this example that recreates your…
-
1
votes1
answer1191
viewsA: Overlapping submenu by other components
I believe your problem is because of a fault in the definition of z-index which is responsible for creating plans, or layer levels. For example, if you set the class with z-index:1 and another class…
cssanswered celsomtrindade 8,038 -
2
votes1
answer346
viewsA: As always show search field
Their result will not be obtained, as they are with the property position defined as absolute. But what does it mean? It means that in relation to the div "father" it will have an absolute…
cssanswered celsomtrindade 8,038 -
5
votes3
answers1868
viewsA: How do I pop buttons on top of my div?
You can wear something like that: .panel-artigo { position:relative; //Importante para que os botões estejam centralizados } .meus-botoes { display:none; //garante que o botão não apareça na tela…
-
0
votes2
answers2308
viewsA: Image(Logo) in the menu and body of the Bootstrap site
Like you didn’t post any css I’m going to assume that the only problem is the distance of the blue banner from the header. It would not be in relation to the logo, because it must be with position…
-
2
votes3
answers1296
viewsA: How to use grid with ng-repeat in Angularjs?
Assuming that you first need to detect if it is a tablet or not, let’s do it through resolution, since some plugins to detect the device are not 100% reliable. You can do this directly on app…
angularjsanswered celsomtrindade 8,038 -
3
votes1
answer414
viewsA: Queries @media for sites 100% responsive?
First, you should watch some points. You are working with bootstrap. I don’t know if you know it, but bootstrap is an extremely powerful tool, both in css as in javascript, possessing several…
-
0
votes1
answer258
viewsA: Select with repeated attributes
There are some things in your code that you should avoid. Do not set the same attribute 2 times; Do not use a very large code within the attribute; An attribute defined 2 times will have as valid…
-
6
votes1
answer2741
viewsQ: Login/Authentication with Angularjs and PHP
Well, I’m making one WebApp where I have a login page before accessing the app and within the app I have some restricted areas. The Webapp is running everything right, but I ended up getting stuck…
-
1
votes1
answer341
viewsA: Height 100% in content
The problem is that you are using 2 properties relating to heightin your div wrapper. Removing the property min-height:100%;and adding height:100%to its content, everything works right. Here’s an…
-
0
votes1
answer622
viewsQ: Website navigation without Reload using ajax does not work properly
all right? Next, I’m making a website with navigation on AJAX, so that it is not necessary to upload the site every time you visit a page. Home, news, contact, etc.. I managed to do the site, update…
-
3
votes1
answer3498
viewsQ: Dynamic update without refreshing page
Whoa, everybody, all right? Next, I’m doing an administrative area and would like the content to update dynamically without the need to refresh the page to see if there’s anything new. For example,…
-
1
votes1
answer372
viewsA: Show a div with jQuery
Well, first of all, it’s not working once you’re using the id inside the University in the form, what is not the ideal. From what I understand, you’re trying to show off div based on the option the…
-
3
votes1
answer804
viewsQ: 'Load More' button duplicates or does not work AJAX/JSON
Whoa, everybody, all right? Next, I have a table that is fed with content from an external JSON file (created from PHP with data coming from DB). When opening the site, the table comes with only 2…
-
1
votes1
answer2703
viewsA: Fixed sidebar layout on bootstrap
Well, since you didn’t post any code and commented on using Bootstrap, I will pass some references of their own site. The Bootstrap has this answer, which would be the use of 'Affix'. It creates an…
-
2
votes1
answer1765
viewsA: Position arrow from a dropdown menu correctly
I once had this problem too. What I did was just change the property 'right: __'. It determines the distance of the object from the right side, in this case it is 45% away from the right edge. Try…