Questions tagged as 'angularjs-scope'

1
answer

Rotating Banner

Hello, use angularJS and wanted to put it to change the slides every 10 sec. I already tried some codes and I could not. Does anyone have a tip? Here's my controller. (function () { 'use strict'; angular.module('scases') .controller('Banne...
asked by 16.05.2016 / 16:10
1
answer

I can not call a function with ng-click

I'm learning AngularJS and I have a problem that I can not solve. I have a function inside a controller that is inside a module. This function is responsible for assembling an accordion element with several items: $scope.montaAccordion = fu...
asked by 03.11.2015 / 16:42
1
answer

Pass values between policies

I'm starting with angular and I have a question. I have the following scenario: I created a directive with the responsibility of displaying message on the screen. Below her code. message.js "use strict"; angular.module("layout") .directive...
asked by 27.10.2015 / 01:32
2
answers

Find new value of a variable in LocalStorage after returning to the view using $ state.go ();

I have a view that uses a LocalStorage variable called Entity . /* Entity Service */ .factory('EntityService', function (){ return { getEntity : function(){ return JSON.parse(window.localStorage['entity'] || false); }...
asked by 29.04.2015 / 23:12
1
answer

Set $ scope value of a Controller from an Angular Directive

I'm trying to get an object from a Controller from an event in a directive, the controller's method call is already correct, but it seems like $scope within this method is wrong , since if $scope.file.data from the call of the even...
asked by 30.04.2015 / 19:30
1
answer

Test variable content

Using ASP.Net MVC and AngularJS I tested the contents of a view field like this: $scope.estado.ldRedeBasica = @(Model.ldRedeBasica == null ? "[]" : Html.Raw(Model.ldRedeBasica)); Only returned the following error:    Compiler Error Me...
asked by 27.03.2015 / 18:29
1
answer

Ui-Routes get the id of the logged in user

I'm using ANGULARJS / UI-ROUTES , and currently my application after login only keeps the email, I need to also have the user ID logged in. The issue of the routes I get, the problem is that he does not see the ID to be able to bring. I think...
asked by 26.05.2016 / 15:54
3
answers

How to use ng-repeat in a list of an object?

How do I use ng-repeat in the object's Regions attribute? Example: ng-repeat="item in objeto.RegioesFilhas Object: var objeto = { "DescricaoRegiaoVaga": "", "IdCidadeCorreios": "1", "RegioesFilhas"...
asked by 28.12.2015 / 20:00
1
answer

ng-click button inside a label

My intention is for a close button to appear within input so that by clicking on it, the search query is reassembled and returns all items again and not just those of the search in question. This button should disappear as long as the use...
asked by 07.01.2016 / 18:23
1
answer

Angularjs Controller does not work right

I am giving a basic study on how to create screens using Angularjs and Material, everything going well until I need the controller, it seems that $ scope is not working, I put a console.log at the beginning of the controller and it prints the te...
asked by 11.04.2016 / 01:29