Posts by Anderson Saraiva • 159 points
6 posts
-
-1
votes1
answer30
viewsQ: How to know if the MODEL value is a file?
I need to know if the value that is in a screen MODEL property is a file. How could I do this in javascript?…
-
0
votes2
answers411
viewsA: How to display JS objects in view
Just like that: {{ Objectscall | json }}
-
3
votes1
answer308
viewsA: Add more than one translation to Vue-i18n
friend, just add the languages in the fallbackLocale property in Array format: import Vue from "vue"; import VueI18n from "vue-i18n"; Vue.use(VueI18n); const messages = { en: { welcomeMsg: "Welcome…
-
3
votes2
answers367
viewsA: Can’t you use onclick in a select option?
You can do it like this: $('#tamanho').on('change', function () { let value = $(this).val() if (value == 'G') { mostraG() } else { mostraM() } }); function mostraM() { console.log("mostraM"); }…
-
2
votes2
answers58
viewsA: How to use jquery in an Angularjs directive?
I use jquery in some Angularjs directives and it works perfectly. Take a look at an example I have here: app.directive("scrollToTopButton", function () { return function (scope, element, attrs) {…
-
4
votes2
answers106
viewsA: How to replace the value of a string from a certain character?
If it’s something simple, you can solve it this way. let photo = "photo.png"; let result = photo.split(".")[0]; console.log(result); Another alternative would be: let photo = "photo.png"; let result…