Posts by Marcos Henrique • 104 points
12 posts
-
-1
votes1
answer411
viewsQ: How to protect routes at angle 8?
I am migrating an application from Angular 8 and a great difficulty that I am having is in the routing system, in my application and mandatory this logged in for all routes except for login and…
-
0
votes1
answer161
viewsQ: How to limit a div draggable from overtaking the corner of the screen?
Guys I have an app that has a div floating that the user can drag inside the screen, only with the draggable() jquery lets the user drag the div beyond the screen and many times it fails to bring it…
-
0
votes2
answers382
viewsA: Run JS function when user choose Select
Tries function myFunction(){ alert(document.getElementById('frmOperadora0').value); } <select id="frmOperadora0" name="frmOperadora" onChange="myFunction()"> <option…
-
0
votes4
answers205
viewsA: Catch event that happened on page
window.addEventListener("click", myFunction); function myFunction() { alert ("Hello World!"); } ai where ta 'click' you can put in the name of the event you want to listen to type 'load', 'keypress'…
-
0
votes1
answer53
viewsQ: inject dependency into a link function in a Directive Angularjs?
Personal I am making a Directive(component) that needs a dependency $compile, I am doing the operations on the directive link and need the $compile inside of it only that I am not managing to inject…
-
1
votes4
answers294
views -
0
votes1
answer104
viewsA: How to reload an Angularjs Directive in the Controller?
Friend your Directive is very vague, in your controller create a user object and fill it with the data of your user coming from where you are pulling, and leave the Directive only for the same menu,…
-
0
votes1
answer36
viewsQ: Add multiple transcludes to a Directive Angularjs
I’m creating a menu component in Angular 1.5.8 where other components such as dropdowns, Search button and etc. Those templates shall not be added to the code of the Directive - they will be added…
-
3
votes1
answer22410
viewsQ: How to calculate how many weeks a given month has with Javascript?
I’m creating a calendar "in hand". I know you will say that there are several libs that already assemble the whole calendar, only in my project can not have external libs beyond Angularjs 1.5.8, I…
-
2
votes2
answers187
viewsQ: Create dynamic menu that adjusts the size of the div
Guys don’t know about css and would like to know how to create a menu that can have up to 5 options, so when I want to have only 4 options or 3 the menu width remains the same but div with the…
-
0
votes1
answer112
viewsQ: Problems to close communication with the database
I have some applications consuming data from the database, but for a while now the applications are not able to close the connection, when I give a conexao.close(); Java says it cannot close because…
-
0
votes1
answer95
viewsA: How to receive a directive within a component in Angularjs
can take these parameters inside an object in Agular and pass the attributes to directive, because the angular has the refusal of two way data bind, or when the receiving Agularjs it will already…