Questions tagged as 'angularjs-scope'

1
answer

Angle function does not load in time?

When I try to use the following code in a website template: <img src="{{getImage(estabelecimento)}}"> The image loads correctly, but before loading this error appears in the console:    GET link 404   (Not Found) Everything l...
asked by 14.09.2017 / 08:40
1
answer

Using $ rootscope AngularJs

I wonder if it's ok to use $rootscope this way? $scope.buscaChamados = function() { modelSac.buscaChamados() .success(function(data, res) { $rootScope.chamad...
asked by 21.07.2015 / 18:59
2
answers

Angular - delete $ scope.categoria_nova;

My delete does not work when registering a new category: The form does not clear the fields, what can it be? JS: app.controller('categoriasCtrl', function ($scope, $http) { $scope.categorias = [ {id: 10, nome: 'Categoria teste 2', at...
asked by 03.12.2015 / 14:40
1
answer

Problems $ scope mdDialog angularjs

Good morning guys! I'm having trouble passing an array to an md-dialog. Clicking on an edit button sends the array that is in the $ scope via locals to the md-dialog's controller so that I can change the data and save it. But the problem i...
asked by 04.02.2016 / 14:44
3
answers

Declaration of Controller AngularJS

Following the script below generated a doubt on which statement to use, in the AngularJS documentation I found the two forms in different examples, but I did not find an explanation of which statement is used or if there is any specific case to...
asked by 07.04.2015 / 15:53
2
answers

Is there a way to not populate HTML with policies?

Using the ng-click directive to get a click event on a link would look something like: <a ng-click="call('home')" href="#" title="ir para homepage">Home</a> But would not this be the same as using onclick="call('home...
asked by 26.11.2014 / 21:49
2
answers

Error page in AngularJS

Well, I'm new to AngularJS. I have a project, a single page with routes configured with a controller. Views are loaded within the element of the index.html page. Inside the controller I'm making an http call to get the data and data binding with...
asked by 09.05.2016 / 13:54
2
answers

Modifying value of my IsAuthenticated in AngularJS

When the token is different from null, my IsAuthenticated must be positive, app.controller("HomeCtrl", function ($scope, $location) { let token = localStorage.getItem("token"); $scope.user = JSON.parse(token); if (token === null)...
asked by 14.03.2017 / 18:33
2
answers

Update ng-repeat out of ng-view?

I have a fixed menu at the top, where pages are opened via routes in ng-view. In an X view I add a new element to my database, and in the drop-down menu I use ng-repeat to list these elements. When I add something new to the database this...
asked by 16.12.2015 / 21:05
1
answer

Ui-route More than one view

Hello, I work with angular, and I'm using UI-ROUTE I'm trying to put two views on the same page and n with you. Here's how I want the views to appear: WhenIclickon"My cadastral data" it is for him to display on the right side the info of the...
asked by 01.06.2016 / 03:53