Questions tagged as 'angularjs'

4
answers

What are the main differences between jQuery and AngularJS?

I'm realizing AngularJS membership and abandonment of jQuery by some developers, however I do not know the advantages of AngularJS because I've never worked with this framework . Since some blogs (eg jeremyzerr , paulhammant ) encourage th...
asked by 16.06.2014 / 00:00
3
answers

What are the main differences between Angular.js React.js and Vue.js?

In a SPA project that will soon be used in a mobile app as well, I need to know the key differences in deciding which framework to focus on.     
asked by 01.04.2017 / 04:42
3
answers

Dependency Injection

Considering the injection of dependencies in AngularJS, there are a few ways to do it. The modes as far as I know are: Form 1: angular .module('meuModulo', []) .controller('MeuController', function(dependencia)) { //... }); For...
asked by 17.02.2017 / 13:26
1
answer

How do AngularJS watchers work?

In AngularJS, there is the two-way data binding , which causes values to be immediately displayed in views even when this value is updated in controller . In addition, there is also the $scope.$watch function that knows exactly w...
asked by 31.10.2017 / 11:42
0
answers

Get child element width in Angular directive

Next I have a table fed by a simple routine. I need to make the scroll to tbody fixed. So far so good. Could make N forms. To try to make the responsive table I'm using a directive to calculate and set the value of each th after the data is r...
asked by 25.11.2015 / 19:25
4
answers

What is the purpose of the :: (double colon) in the Angular?

I saw in some English SO question an AngularJS code that was using double colons before the variable. Example: {{ ::nome_variavel }} The normal thing is: {{ nome_variavel }} What is the difference between the two? What is the differ...
asked by 19.09.2016 / 19:01
2
answers

How do I pass one parameter to another scope with angularjs?

I have a screen that contains a list of information, when clicking on some item I can get its number, for example: Item 5 of array . The problem is that on another screen I need to display the information of the item that was clicked, and I'...
asked by 01.03.2015 / 00:00
1
answer

What is the difference between factory, service or controller in Angular?

Next, in practice, what is the difference and how do you do service with .service, .factory and controller? service.js angular.module('app.services', []) .factory('BlankFactory', [function(){ }]) .service('BlankService', [function(){ }]...
asked by 22.01.2016 / 20:15
3
answers

How to format a date in 'dd / MM / yyyy' format?

How to get a formatted string from an object of type Date in format dd/MM/yyyy ?     
asked by 18.02.2016 / 13:10
2
answers

View control via authorization with AngularJS + WebAPI

I'm working on an application built with AngularJS and ASP.NET Web API. For now, using ASP.NET Identity I've already been able to implement authentication and authorization in the API using OAuth 2.0 and token-based authorization. I tested th...
asked by 27.04.2014 / 05:53