Posts by MSLacerda • 601 points
16 posts
-
0
votes1
answer198
viewsA: Local variable inside an ngFor
Hello, welcome to Sopt. Good to solve your problem we can use the attr in the input to set its id. Ex. <input attr.id="input_email_{{email.idEmail}}"> Then just capture the same and execute…
-
7
votes1
answer1238
viewsA: What is the difference between $Digest and $apply?
Hello, I will try to answer this question using the concepts presented in the book: Angularjs Up & Running(Shyam Seshadri & Brad Green) and in the Angularjs documentation found itself here.…
-
1
votes1
answer31
viewsQ: Page indexing that can redirect
I have a certain site that contains some pages, but some of these pages are not being indexed by Google. However the pages that Google does not index cannot be accessed if a certain option is not…
-
2
votes1
answer117
viewsA: Does Phpunit work with Structured Programming?
You can rather test non-OO codes with Phpunit, unit tests are not linked only to the Object Orientation paradigm, this type of test (as the name already says) tests the units of your code, in the…
-
1
votes1
answer23
viewsQ: Bug when using pseudo-element after on small screens
Hello, a curious bug appeared when I tried to make a text with this effect: The problem is in smaller screens, the second effect in the text "adipiscing Elit!" simply add up, depending on the size…
-
3
votes3
answers316
viewsA: Exercise changing last element
Hello, can you separate the string original in the spaces. Ex. alphabet = "a b c d e f g ee" old = "e" new = "kk" last = -1; data = alphabet.split() And then just go through the resulting list by…
-
4
votes1
answer907
viewsA: Do I need a server to log in with React?
There are some ways to solve this friend, let’s go in pieces. Requisitions The Reactjs is only a library for building interface, does not offer you, as well as frameworks native request ways, you…
-
2
votes1
answer253
viewsQ: Find position in an array by position in the array?
If I have an array, ex: [1, 2, 3, 4, 5, 6, 7, 8, 9] and I transform this array into an array, e.g.: y[0] y[1] y[2] x[0] = 1 | 2 | 3 --------------- x[1] = 4 | 5 | 6 --------------- x[2] = 7 | 8 | 9…
-
5
votes2
answers62
viewsA: Name not printing
Just needed to add () in the onclick to call the function and place the variable within the function scope so that the name is captured during the execution of the function. function clique(){ var…
-
1
votes1
answer700
viewsA: JS does not work after running "npm run dev"
Hello, looking at your project I found the problems friend... Importing Javascript Libraries In the archive located in /RW-Site/resources/js/app.js is where you should import the libraries you…
-
1
votes1
answer155
viewsQ: How to check if the Sliding puzzle is solvable?
Hello, I am developing a small work where I need to solve a puzzle through algorithm A* more precisely this puzzle: Basically it consists of sliding the pieces to the white space in order to keep…
-
1
votes2
answers133
viewsA: How to group and filter fields with JS
Hello, Friend I believe that this structure should come from your backend. I believe that there is nothing more practical than to do with your own hands, I did something, a little gambiarra, but…
javascriptanswered MSLacerda 601 -
0
votes1
answer95
viewsA: Prevent the pseudo element ::before from receiving the effects of Hover applied to its parent
According to what was discussed in the question, I ended up reformulating the structure: I couldn’t find a better way than to dynamically add an element <div> between each…
-
1
votes1
answer4357
viewsA: Google Maps error (This page did not load Google Maps correctly)
Hello, according to this link Google maps requires a key for all your projects, from 11 de June de 2018 ;). Part that talks about it: As of June 11, 2018, you will need to activate billing with a…
-
0
votes1
answer95
viewsQ: Prevent the pseudo element ::before from receiving the effects of Hover applied to its parent
Hello, I’m applying Hover to an element, and this one contains a pseudo element before, in which it is receiving the effects of Hover of his parent element. This image shows the problem: Note that…
-
1
votes1
answer130
viewsA: Javascript IF return content
Hello, If I understand correctly, you want to show one content and hide another according to a sentence. With Angularjs there are some ways to do this, I’ll show you some: ngIf using the directive…