Posts by CarvBru • 98 points
7 posts
-
0
votes3
answers1219
viewsA: How to delete with Angular 4
You do not call it in HTML. you need to assign a function in the (click) of your button,. And then no. js of your component, you need to import your delete class, create a function within your…
-
0
votes2
answers65
viewsA: Validation based on a word list
Dude, in Jquery’s doc he says: Because Javascript Treats 0 as loosely Equal to false (i.e. 0 == false, but 0 !== false), to check for the presence of value Within array, you need to check if it’s…
-
0
votes1
answer22
viewsA: Angular Directives js2
In the latest versions of Angular, you no longer set Directives in @Component. Now you declare your directives in your @ngModule. For example: @NgModule({ declarations: [ AppComponent,…
-
3
votes3
answers8565
viewsA: Compare 2 arrays and save the difference between them in the database?
In fact, Alexandre’s answer only returns what there is in array 1 and not in array 2, when in fact the verification should be done in both array, follows my solution: function validarDiferenca() {…
-
0
votes1
answer89
viewsA: CSS formatting does not apply in HTML2PDF plugin
Actually html2pdf has several limitations regarding the use of css, you can really check if it is the case of one of these limitations, then your options would be: Create an Issue on official…
-
2
votes3
answers761
viewsA: Error Calling Jquery function
The console says that the function was not defined because modal() is not a native function of Jquery, but Bootstrap.js.. So, if you don’t have the bootstrap.js file being called a script tag, the…
-
3
votes1
answer1172
viewsQ: Returning JSON from a Factory to a controller with Angularjs
I’m starting to study angular more deeply, and am having problems processing JSON data into a Factory and passing them to a controller. My idea is: A simple app, just for study, where I type the…