Questions tagged as 'angularjs'

1
answer

Working with angularJS in master page asp.net

I've been involved with angularJS for these days, so at this stage of learning, a question arose. How do I work with angularJS in ASP.NET pages that have a master page? For example, I noticed that the "ng-app" directive should be pl...
asked by 21.08.2014 / 13:38
3
answers

How can I make a copy of an array without reference?

I would like to know how to make a copy of an array without the reference. Example of what I'd like to do: var a = [1,2,3,4]; var b = a; a[0] = 3; b[0] = "nao me copie!" console.log(a[0]) //mostrar 3 console.log(b[0]) //mostrar frase nao m...
asked by 25.08.2015 / 08:43
4
answers

What is the difference between creating a module normally and creating a module within a function?

I've been looking at some sample projects in AngularJS and have come across several times with the following code: (function () { angular.module('meuModulo', [ 'alguma.dependencia', 'outra.dependencia' ]); })(); Th...
asked by 30.03.2016 / 15:46
2
answers

How to destroy a $ scope. $ watch?

I have the following $scope.$watch in the controller of a directive that I created: var interval; $scope.$watch('active', function () { if ($scope.active == true) { interval = $interval(function () { if ($sco...
asked by 18.11.2016 / 12:02
2
answers

How do I convert a date into the American format in Angular?

I am using a Json answer in Laravel 5, where I use the Angular to be able to display this data. The date in Laravel is returned in 2017-05-17 15:56:46 format. When attempting to use the date filter on the angle, the same thing c...
asked by 18.05.2017 / 14:35
1
answer

What does AngularJS MVW mean?

When you search Google for Angular, it is returned:    AngularJS - Superheroic JavaScript MVW Framework I know that MVC stands for Model-View-Controller but what is the W of the MVW Framework ? Is this a new software architect...
asked by 25.05.2017 / 22:26
1
answer

Load parts list using AngularJS

I want to return a query using AngularJS and, when displaying on the screen using ng-Repeat , display only the first 10 records, and append 5 in 5 records, using the scrollbar * or just by clicking a button. > Ex: Virtual stores that sho...
asked by 16.11.2015 / 13:06
2
answers

How to organize the codes in AngularJS?

I have several modules with AngularJS angular.module('modulo1', ['ngTable']); angular.module('modulo2', ['ngTable']); angular.module('modulo3', ['ngTable']); window.app = angular.module("app", ['ngRoute','modulo1','modulo2','modulo3']); A...
asked by 13.08.2014 / 05:07
2
answers

Mixing Javascript libraries in a project

I wonder if it's not good practice to load several different Javascript libraries into one application. For example, the project has an X deadline for delivery, but should be done in AngularJS but the developer knows more about jQuery which m...
asked by 20.09.2015 / 00:12
3
answers

How to edit and load class only for a single element

I have the following HTML structure below. However, by clicking on one of the "items" the class (editing) is displayed for both elements. What should I do to make this happen only on the clicked item? Editing: Note: ng-click , is w...
asked by 02.06.2017 / 01:40