Posts by fernandoocf • 1,095 points
33 posts
-
6
votes2
answers740
viewsQ: Swap whitespace for %20 in Java
I have the following URL: String Url = "www.minhaUrl/pagina/meus parametros tem espaços em branco"; I need to turn it into: String Url =…
javaasked fernandoocf 1,095 -
0
votes1
answer47
viewsQ: About the Angularjs Digest loop
Although I have been working with Angularjs for some time, I have never been able to understand how your Digest loop works. I would like to understand more about it.
angularjsasked fernandoocf 1,095 -
7
votes1
answer130
viewsQ: Make a " or " inside the key of an attribute in JS
I have the following code: scope.cm = 1; scope.mm = 2; scope.km = 3; tipoDeMedida[scope.cm || scope.mm || scope.km] = function(arrayQualquer){ //executo meu bloco de código X. }…
-
2
votes2
answers277
viewsA: What is this error that appears on the console, rotating angular?
As @Onosendai said, you are trying to use a service without injecting it into your main module of your Angularjs application. Whenever you want to use a service that is not "native" to Angularjs,…
angularjsanswered fernandoocf 1,095 -
10
votes4
answers3526
viewsQ: How to pick a String that is between Javascript tags using Regex
I have the following string: var text = "Meu nome <[email protected]>"; I’d like to take just the [email protected], using Regex.
-
2
votes2
answers466
viewsQ: How to remove error 401 message from console with Angularjs/Javascript?
I get the following error message on my console: POST http://localhost:8080/minhaURL 401 (Unauthorized) I would like to know how to remove this error log from the console, because I’m already giving…
-
8
votes1
answer369
viewsA: How to do this with Javascript?
You can use the Animate.css. It gives you several css classes ready to make these animations. Just download the plugin(it’s just a css file). Point it at your index.html <link rel="stylesheet"…
-
1
votes3
answers341
viewsQ: How to render an html that came from a json response?
Response from the JSON: post: { body: "<div>O meu html vem dessa forma</div>" } I wonder how I do to render this mine post.body in my view. Is there any directive that does this for…
angularjsasked fernandoocf 1,095 -
3
votes4
answers5749
viewsQ: Input type NUMBER does not consider maxlength
I have the following HTML: <input ng-model="idade" type="number" maxlength="3" placeholder="Informe a idade"> When I go to test, the input ignores the maxlength and lets you type as many…
-
10
votes3
answers24310
viewsQ: How to check if a String is empty in Javascript?
Given the following object: var pessoa = { nome: "fernando" } Note: sometimes I am receiving the object as follows: var pessoa = { nome: "" } How do I check the attribute name is empty, as the…
javascriptasked fernandoocf 1,095 -
2
votes1
answer696
viewsQ: Doubt to remove Javascript attributes
Given the following object: var pessoa = { nome: 'Fernando', idade: 15, } I would like to know the most RIGHT way (if there is a more correct way) to remove one of these attributes.…
javascriptasked fernandoocf 1,095 -
7
votes2
answers312
viewsQ: How to check an object type attribute in Javascript?
I get the following object: obj = { fernando: { nome: 'Fernando', idade: 21 }, tiago: { nome: 'tiago', idade: NaN }, total: 2 } As you can see, I receive an object where each attribute can be…
javascriptasked fernandoocf 1,095 -
7
votes3
answers347
viewsA: Difference between validation and mask
If your function alters controls the shape of a die, models its shape or imposes a certain shape to your die, this is considered a mask. Ex: CPF - (000,000,000-00) / Date - dd/mm/yyyy If your…
-
0
votes2
answers1391
viewsQ: How to format a very large string (organize the text)
I have an object with an attribute of type String that has a very large text, and I need to organize this string so that the text is organized and more beautiful. I wonder if there are any JS…
-
0
votes2
answers80
viewsA: Error in build Ionic framework
As Thyago said, if you set the Android environment variable on your user, you don’t need to use the sudo. Remembering that for you to generate android apk the process should be done in the following…
-
3
votes2
answers818
viewsQ: Is it possible to change the order of the commits on my branch?
I wonder if there’s a way I can change the commit orders on my branch. Reason: I made a huge commit, with low changes and great importance to the system (which can kill the system), and now I want…
gitasked fernandoocf 1,095 -
0
votes3
answers4380
viewsA: Html + Css FAQ creation
The behavior you refer to is called accordion or Collapse. See an example of Collapse with Bootstrap: http://www.w3schools.com/Bootstrap/bootstrap_collapse.asp You can do it on hand, take this…
-
4
votes2
answers8606
viewsQ: What is the difference between the angular foreach and the javascript map function
I would like to know the difference between using the angular.forEach and the function map javascript. ex: angular.forEach(meuArray, function(itens) {...}) meuArray.map(function(itens) {...});…
-
3
votes5
answers3128
viewsA: What is CDN and how do I enable it in my Javascript files?
CDN (Content Delivery Network) is an information distribution network that allows providing Web content more quickly to a large number of users, distributing content across multiple servers. Example…
-
0
votes1
answer784
viewsA: Which version of nodejs to install Cordova Ionic 2.0.0-beta.3
Go on https://nodejs.org/en/ Install the left option(6.9.1) You will basically need NPM to install some dependencies, and Ionic itself. After installing Node, do: npm install -g Cordova Ionic After…
-
2
votes3
answers4432
viewsA: How to set a default option in a select with data-live-search HTML?
Just do: <option selected>Minha Opção</option> Reference: http://www.w3schools.com/tags/att_option_selected.asp…
html5answered fernandoocf 1,095 -
1
votes6
answers4503
viewsA: If null, Nan, false and Undefined in Javascript
Makes: var x = false; if(x === false || x === undefined || isNaN(x)) { } Any questions, look at these links: http://www.w3schools.com/jsref/jsref_isnan.asp http://www.w3schools.com/js/js_if_else.asp…
javascriptanswered fernandoocf 1,095 -
1
votes3
answers120
viewsA: What is the syntax of literal objects in Javascript?
This is an object. The structure follows the standard attribute and its value. This value can be a String, boolean, int, function(), other object. Follow an example: var objeto = { atributoUm:…
-
1
votes2
answers292
viewsA: Why doesn’t the data appear on the screen using firebase and angular?
Do it: $scope.filmesCadastrados.push({ titulo: filme.titulo, diretor: filme.diretor, categoria: filme.categoria, duracao: filme.duracao })
-
1
votes1
answer53
viewsA: I installed Bower, Gulp but don’t know which file to edit
Take a look at index.html, there look for the route import or something like that, in this file, you will see which html name renders the page you need. PS: I suspect you find what you’re looking…
-
-1
votes2
answers555
viewsA: Ionic doesn’t recognize my css
Do: <link rel="stylesheet" href="css/line/_all.css">
-
0
votes1
answer142
viewsA: INTEL XDK + IONIC error while installing apk
In your config.xml erases everything you have from android Platform, all tags, and then makes a Ionic Platform add android and build a new.
-
1
votes1
answer973
viewsA: Generators are only available for Ionic 2 Projects
This is because you are trying to use a Generator in an Ionic 1 project, when Ionic Generator only supports version 2.
-
0
votes4
answers7208
viewsA: How to group an object array in javascript (Angular)
Do var objetos = [ {"dia":1 , "desc":"Nigth","mes":1}, {"dia":1 , "Descricao":"Brilha","mes":1}, {"dia":1 , "desc":"Nigth","mes":1}, {"dia":2 , "desc":"Urna","mes":2} ] var meuNovoArray = [];…
-
1
votes3
answers1078
viewsA: What is the best way to pass JSON per parameter in Angular JS?
If you want to save this user, and the same doesn’t change, you can do this: Controller $http.post("sua url", data).success(function(response) { var user = response; localStorage.setItem("user",…
-
1
votes3
answers3228
viewsA: How to change the CSS style sheet dynamically with Angularjs?
Look, you can put Watchers, for example, to check if the model this input is true or false, for example, and depending on the value you can pass an ng-class with the css class you want to apply. For…
-
1
votes2
answers905
viewsA: Auto-sign in to hybrid apps?
In my app, when I log in I save the user who logged in to the browser’s localstorage. When the user opens the application again, I just do a check to see if there are any users saved in these…
-
5
votes4
answers6169
viewsA: Angular js Array within another array
Do: Controller $scope.meuArray = []; //meu primeiro array é esse seu array que tem outros arrays dentro angular.forEach(primeiroArray, function(arrays) { $scope.meuArray.push(arrays) } HTML <div…