Posts by OnoSendai • 36,218 points
614 posts
-
35
votes3
answers514
viewsA: What is the purpose of the software development sequence steps?
We have a problem! And we need a solution. Requirement - 'This is the problem.' Analyzing - 'Ah, that’s why the problem happens.' Design - 'We can avoid the problem if we do it that way.'…
-
3
votes1
answer65
viewsA: Angularjs - Where to put Jquery/Javascript functions
There’s nothing in the Angular specification that forces the location of a feature file with extra functionality. If you’re not consuming anything from Angular and Angular doesn’t expect anything…
-
10
votes2
answers223
viewsA: How to get all constants of a class?
// Lista todos os campos públicos e estáticos, // tanto da classe quanto das classes-base foreach (var prop in typeof(SuaClasse) .GetFields(BindingFlags.Public | …
-
1
votes2
answers34
viewsA: Inverval set when $on is set
The line $rootScope.$on("timer", updateApanha()); Means: When the message timer is issued, execute the result of function updateApanha. This makes it UpdateApanha is executed at least once, and…
-
3
votes1
answer3156
viewsA: doubt Array.push() Javascript
You are adding an array (arr) as a object to the internal collection of newArr. If you want to concatenate the elements of arr with the elements of newArr, instead of newArr.push(arr); Utilize…
-
0
votes1
answer151
viewsA: Problems with $Resource Angularjs
Your current code is not running the method and awaiting resolution of Promise - actually is just passing objects to the method. Altere of Rota.query(function(data){ [...] for…
-
2
votes1
answer268
viewsA: Panels in Angular
No need for external components. Use a combination of ngRepeat and CSS: angular.module('myApp', []) .controller('myController', function($scope){ $scope.paineis =…
-
20
votes3
answers572
viewsA: What is a devops?
Wikipedia article in Portuguese (edited): Devops (amalgam of the term in English Development and Operations, development and operations) is a software development methodology that explores…
-
2
votes2
answers261
viewsA: How can a Function expect the result of $http?
Wait for the HTTP operation to return in a callback, that according to the $http service documentation must be included in the first parameter of the method then() of the returned object: $http({…
-
6
votes3
answers1813
viewsA: How to map 1:N (one to many) in Dapper?
Dapper is an extremely performative tool for working at a level very close to ADO interfaces. However, no interface is provided to express relationships. You will need to implement your own…
-
4
votes1
answer398
viewsA: How to define a favicon? Is it mandatory to define it?
The favicon is defined by a relation element (<link rel>) in the header of your page, within the element <header>. While the presence of a favicon is optional, your browser will always…
-
0
votes2
answers121
viewsA: Sharepoint with Angular. Are we doing it right? What’s the best way to integrate?
The best way to implement an application is by using the methodologies and practices the team already has and is comfortable with. That said, Sharepoint 2013 has a REST interface. It would be…
-
2
votes3
answers11972
viewsA: Updating page after time
You tried to wait 10 minutes? 600000 milliseconds = 10 minutes. $(function() { setTimeout(function(){ location.reload(); }, 600000); // 10 * 60 * 1000 }); If you want 3 minutes, try 180000…
-
10
votes5
answers1106
viewsA: Is SOAP safer than REST?
The answer was that they did not use REST because of the security [...] This would be true information? Not. The SOAP specification defines only one data exchange protocol. The Web Services…
-
9
votes4
answers6341
viewsA: What is the Assembler?
What is Assembler? And what is your relationship with Assembly? Assembler is a compiler. It converts written code into the language Assembly for native code.…
-
2
votes2
answers739
viewsA: Map Leaflet - Access extends
Question - is there any specific reason why you are using angular.extend()? You can implement a solution simply using simple objects - scope properties, for example. The functional example below…
-
1
votes1
answer282
viewsA: Show and hide div after filter with Angularjs
Use a alias for the result of your filter chain: <div ng-repeat="user in users|filter:search|filter:selectedCategories as filteredUsers"> Angular copies the final value of the filtered…
-
3
votes2
answers466
viewsA: How to remove error 401 message from console with Angularjs/Javascript?
There is no way to prevent the exit to the console. If you want to force the complete cleaning of the log, use console.clear(); However this will eliminate all lines, not just the last.…
-
4
votes1
answer87
viewsA: Debug with min files in Angularjs
You don’t need concat and uglify for development time - in fact you are adding overhead by concatenating and minifying all content after each change. If you are using the traditional notation for…
-
1
votes2
answers164
viewsA: How to verify, for each item inserted in $Scope.items[], whether fields have been filled in
You’re already linking the two inputs to the model: <label>Nome: </label><input type="text" ng-model="user.nome"> <label>E-mail: </label><input type="text"…
-
0
votes1
answer274
viewsA: Why does ng-repeat from Angularjs not work in Bootstrap Modal?
You haven’t mentioned which modal engine you’re using - assuming you’ve created your own, check your scope definition: app.directive('modalDialog', function() { return { restrict: 'E', scope: {} //…
-
4
votes1
answer661
viewsA: Good practices for changing variables $Scope
Its implementation attempts to control the flow of events programmatically and synchronously (filterStatus > stores status and texto > getProjetos()). You can benefit from the asynchronous…
-
1
votes2
answers584
viewsA: Angular with ngRouter does not work when I type in Browse
If you have not implemented redirect on your server in cases 404 NOT FOUND, your application will not work. When using HTML5 mode the browser will prompt the full URL to the server whenever the user…
-
2
votes1
answer289
viewsA: Dropdown in modal does not see Switch controller Angular JS 1.5
Pass current scope reference to uibModal: $uibModal.open({ templateUrl: 'templates/feed/modal/modalPost.html', scope: $scope, //referência [...]
-
5
votes1
answer1373
viewsA: What is a memoisation?
The etymological origin is the same as the term "memorization", both of which cognates. From the Wikipedia article (free translation), The term "memoization" or "memoisation" was coined by Donald…
terminologyanswered OnoSendai 36,218 -
6
votes2
answers119
viewsA: ES6 classes do not allow property declaration?
There is no provision in ES6 for declaring properties directly in the class. The reason was the proposed maximum minimum classes. The key point is this: There is (intentionally) no direct…
-
2
votes2
answers163
viewsA: Controller and service logic with Angularjs
This is yet another question regarding code review than the actual use of services. 1- This approach is "correct"? Nothing invalid with it. It can, however, be improved, for example with the…
-
5
votes1
answer767
viewsA: Multi-client Web API Structure
The question is a little wide. I will try to provide some parameters that will help you choose your ideal scenario. Individual databases ensure data isolation (one user of one client will not see…
-
2
votes1
answer165
viewsA: Angularjs ui-router application has /#! / in the URL
One possibility is that Angular is configured to use the HTML5 standard for Urls without hash, but the browser has no mode support. From angular documentation: Fallback for legacy browsers For…
-
2
votes1
answer65
viewsA: How Abstract States works at the angular
A practical example might illustrate some possibilities. Imagine you have an application where access to a given state is controlled by permissions - for example, #/usuarios is a state that displays…
-
4
votes1
answer336
viewsA: Discover the User Hostname
TL;DR: Is not possible. Long version: For safety reasons (environmental isolation), none of the objects provided by current Ecmascript implementations include information of the environment itself -…
-
1
votes4
answers1986
viewsA: Where does JWT keep the tokens?
The JSON Web Token standard (JWT) only defines an access tokens exchange protocol and format - storage is not part of the specification. Translation wikipedia article: [...] is an open standard…
-
5
votes1
answer112
viewsA: Angularjs in "Big" project
Angularjs is made for single page, right? Yes, Angular is a single-page application framework - which means your operating model prevents reloads complete (as in a navigation to another page, for…
-
1
votes1
answer355
viewsA: How to request access token server, only via frontend securely, without human interaction?
I have an application in the frontend of a server, which needs to communicate with a Rest API on another server, without the client having to log in. I’m assuming you mean on a server S you have a…
-
1
votes1
answer217
viewsA: Form field filled in, but given as $pristine
When programmatically assigning a value, use $setDirty() to remove pristine state from form. Example: Data.post('getElaborador', $rootScope.codigo, 'Listagens').then( function(success){…
-
4
votes1
answer68
viewsA: Is it possible to manipulate a template of an abstract route, in other routes, dynamically?
Use a service to share values between controllers. Example: angular.module('minhaApp', []) .service('valoresCompartilhadosService', function () { this.valorCompartilhado = ''; return this; }); With…
-
13
votes3
answers4398
viewsA: Difference between Promise and callback
[...] there are [functionally] differences in the two models[?] Fundamentally not. Promises are, at heart, callbacks; functionally the difference is that the model of Promises provides a standard…
-
1
votes2
answers292
viewsA: Why doesn’t the data appear on the screen using firebase and angular?
The update, triggered by a Promise firebase, is not firing the cycle $digest Angular. Use the service $timeout, that provides a wrapper that invokes the cycle, to provoke the delay by the Angular:…
-
2
votes5
answers3128
viewsA: What is CDN and how do I enable it in my Javascript files?
In the context of web development (and concerning the message about static content) Cdns are services where libraries client (in general Javascript and CSS) can be found. Your focus is on high…
-
3
votes2
answers1667
viewsA: How to do a simple "ping" on external sites returning status: 200, 400
Unfortunately there is no way to implement such a solution using only Angular (or any other client-side technology such as jQuery) because of Same-origin policy, or same origin policy. You can use…
-
4
votes1
answer153
viewsA: Which Response default in a Rest api when partially executing an action?
In similar situations I use the following standard: 200: OK No error found. 202: Accepted Successful sending payload. is not considered an error status; return a payload containing individual…
-
1
votes3
answers1182
viewsA: Separate a string in C#
First separate by lines, then by fixed strings. In your case, the numerical values are in second position if we use a blank space as a separation criterion, and the name in the second position is…
-
8
votes2
answers922
viewsA: Recover External IP without third party services
[...] you can do this natively with . Net Framework without using third party services? No, it is not possible. Your machine has access to local IP only, provided by the internal DNS service or set…
-
11
votes2
answers103
viewsA: How do I represent this using CSS?
Content quite similar to that presented by @ How to customize the side edges of a DIV?, but this uses pseudo-elements to form markers horizontally: .clamp-container{ position:relative;…
-
6
votes2
answers293
viewsA: How to destroy a $Scope. $watch?
All scope monitoring functions return a deregistration function: $applyAsync $on $watch $watchGroup $watchCollection To deregister a Listener, simply call your deregister function: var dereg =…
-
8
votes2
answers536
viewsA: External and internal memory sorting algorithms
The points exposed by @Maniero are accurate. An image might help you visualize how such a process would work. Any sort algorithm can be used in both primary and secondary memory if you segment your…
-
0
votes1
answer210
views -
4
votes3
answers3228
viewsA: How to change the CSS style sheet dynamically with Angularjs?
This is not only possible with the client implementation, as the Angular application is initialized after the style sheets are processed and made available for consumption by the DOM. You can try to…
-
60
votes4
answers38157
viewsA: What is XGH (Extreme Go Horse)?
So said the Master Programmer: When a program is in the testing phase, it is too late to make scope changes. Legend has it that in a remote province there was a monastery where the Master Programmer…
terminologyanswered OnoSendai 36,218 -
6
votes3
answers1883
viewsA: Bind Javascript
Your code is right, just missed you invoke the method. For this I added the invocation (()) at the end of your code: Following is the functional version: let car = { sound: 'Vrrrrummm', startEngine:…
javascriptanswered OnoSendai 36,218