Posts by noeyeat • 255 points
12 posts
-
0
votes1
answer75
viewsQ: Unit Test Rxjs + Ngrx Subscription in Angular with Karma
I’m having difficulty executing unit test for the following function: subscribeToUsuario(): void { this.subscription.add( this.store$.pipe(select(selectors.selectUsuario)).subscribe(state => { if…
-
1
votes1
answer56
viewsA: Explanation Hoisting Javascript
In Javascript, every variable that is declared with the keyword var is "high" (Hoisting) to the top of the execution context, right? You basically explained your question with that statement. Only…
-
0
votes2
answers873
viewsA: Javascript does not load all functions
In my browser your script is with a strange encoding, the name of a function is function modMesesOpção, try changing the encoding and see if it returns anything different.
-
2
votes3
answers396
viewsA: How to write a Regular Expression to find a paragraph?
You can use Regexp /^<p>.+<\/p>$/gm, whereas: ^<p> will ensure that the start of the line is <p> .+ take all the elements after the initial tag, you can change to how to…
-
1
votes2
answers3029
viewsA: Modal Bootstrap 4: How to call another within a modal
I don’t know if it’s the way you think it is, but the only way it exists is by using the $(element). modal('show') method, you’ll be superimposing modals. It would look like this: Button will open…
-
1
votes3
answers50
viewsA: Add button does not differentiate products
Dude, I made an example for you, so I’m gonna summarize everything you need to research and think about first. Take a look at the documentation that you will understand everything that has been…
-
1
votes1
answer129
viewsA: Problems adding side menu in project already started
Good Felipe, you can do it in two ways: 1a - Create the app with the sidemenu template and change the main page: Create the app with the sidemenu template Generates a new page with ionic generate…
-
0
votes1
answer403
viewsQ: What is the difference between Constructors and Factories in JS?
Studying I got this doubt, because the 2 seem to me ALMOST the same thing, but while the Factory returns an object when the function is executed (the properties and functions do not use the this, in…
javascriptasked noeyeat 255 -
1
votes1
answer58
viewsQ: css selector with Nth and not
I have a form with flexbox, only when an error is inserted div of alert, breaking the layout. Have some fields that are 50% on the same line <form method="post" action="XXX"…
-
0
votes0
answers336
viewsQ: Wordpress - Paging does not work in taxonomy
I have a custom post type "news" and a taxonomy "subject" that has its terms, to make the pagination I am using the following code (page-news.php): $custom_query_args['paged'] = get_query_var(…
-
0
votes2
answers881
viewsQ: Change div background on Hover
I can’t change the background of the div when I hover over, in case I want to change the background of the circle. <div class="col m3"> <div class="center promo"> <div…
-
3
votes1
answer4599
viewsQ: Put a div behind the other
There’s no way I can make this work. I’m using "Animate.css" to make the animations of the elements appear, but when an element is going up, at the bottom of the page for example, all the content of…