Most voted "angularjs-scope" questions
59 questions
Sort by count of
-
9
votes2
answers1137
viewsHow to use a module in Angularjs?
I have the following code in Angularjs but I have the error: Error: [$injector:unpr] Unknown Provider: Authenticationprovider <- Authentication My code is this: app js. angular.module('app')…
-
8
votes1
answer719
viewsWhat is the difference between "=" and "<" in the "Scope" options of a customised directive?
In Angularjs, I was creating a directive. I realized that by using the sign = to capture a certain controller scope value, when I changed this value, the parent controller value was also being…
-
6
votes1
answer161
viewsWhat is $Scope.Answer?
I’m new to Angularjs, I would like to understand what $Cope.Answer is really for, I didn’t find anything in the official documentation or on the web, I just saw it in an example I took in a…
-
5
votes1
answer8620
viewsWhat is $Scope for. $apply ?
I saw in a code $Scope. $apply that uses Angularjs, what does it serve ? In the context it is in this way: var a = function(param){ $scope.$apply(function(){ var image =…
-
5
votes3
answers1134
viewsHow to access the $Cope variable?
I wonder how I can access the contents of the variable scope in Angularjs? Theoretically I did everything "correct", ie declaring the variable in controller and assigning values in it: var app =…
-
4
votes1
answer351
viewsDifference between Cope declaration
Is there any difference in that Cope statement mentioned in the angular documentation: myApp.controller('DoubleController', ['$scope', function($scope) { $scope.double = function(value) { return…
-
4
votes3
answers1233
viewsPass directive inside template
I have the following scenario: I have a directive called modal and I want to pass another directive as content, the code is as follows: maintain-supplier-formulario.js "use strict";…
-
4
votes1
answer240
viewsAngularjs google Chart with dynamic data
Example of how my code is http://plnkr.co/edit/hMnKAzjbkQzHWjL5p6KX?p=previewangularjs I receive the data from the webservice and organize this way. var avaliacoes_descTipo = []; var…
javascript angularjs google-charts angularjs-scopeasked 8 years, 3 months ago Erik Ieger Dobrychtop 153 -
3
votes3
answers2843
viewsController Angularjs Statement
Following the script below generated a doubt in which declaration to use, in the Angularjs documentation I found the two forms in different examples, but I did not find an explanation of which…
-
3
votes1
answer693
viewsUse of $rootscope Angularjs
I wonder if it is correct to use the $rootscope in this way? $scope.buscaChamados = function() { modelSac.buscaChamados() .success(function(data, res) { $rootScope.chamadosSistema = data; }); }…
-
3
votes1
answer1318
viewsWhat is $Parent in Angularjs?
I’m reviewing a colleague’s PR and came across the use of $parent, I read a little in the documentation of angular, but I can’t understand what it does. It is used within a dialog created within…
-
3
votes1
answer44
viewsAngular 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 on the console: GET…
-
3
votes2
answers202
viewsNgshow two parameters - Angularjs
Hello all right? I hope so! I’m still kinda Noob on the angular and today I came across a doubt, I need to spend two Xpression in the ng-show of Angularjs, I need the same do the show or Hide and…
-
3
votes2
answers260
viewsAngular - delete $Scope.categoria_nova;
My delete does not work when registering a new category: The aphorist doesn’t clear the fields, which can be? JS: app.controller('categoriasCtrl', function ($scope, $http) { $scope.categorias = […
-
3
votes1
answer963
viewsUi-Routes get logged in user id
I’m using ANGULARJS/UI-ROUTES, and currently my application after logging only gets the email, I need to also come the ID of the logged-in user. The question of the routes I can, the problem is that…
angularjs angularjs-directives angularjs-scope angular-module ui-routerasked 8 years, 5 months ago Biellx 461 -
2
votes2
answers218
viewsIs there a way to not fill HTML with directives?
Using the directive ng-click to catch an event by clicking one link would be something like: <a ng-click="call('home')" href="#" title="ir para homepage">Home</a> But this wouldn’t be…
javascript angularjs angularjs-directives angularjs-scopeasked 9 years, 11 months ago Renan Gomes 19,011 -
2
votes1
answer148
viewsTesting of variable content
Using ASP.Net MVC and Angularjs I tested the contents of a view thus: $scope.estado.ldRedeBasica = @(Model.ldRedeBasica == null ? "[]" : Html.Raw(Model.ldRedeBasica)); Only it returned the following…
-
2
votes2
answers179
viewsFetch new value from 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…
-
2
votes1
answer1117
viewsSet $Scope value of a Controller from an Angular Directive
I’m trying to make from an event in a Directive, is called a method belonging to a Controller, the Controller method call is already correct, only it seems that the $scope, within that method is…
javascript angularjs angularjs-directives angularjs-scopeasked 9 years, 6 months ago Fernando Leal 9,770 -
2
votes2
answers382
viewsUpdate ng-repeat outside ng-view?
I have a fixed menu at the top, where the pages are opened through Routes in ng-view. In an X view I add a new element to my database, and in the fixed menu I use ng-repeat to list these elements.…
-
2
votes1
answer512
viewsPass values between directives
I’m starting with angular and have a question. I have the following scenario: I created a directive with responsibility to show message on the screen. Below her code. message js. "use strict";…
-
2
votes1
answer6836
viewsI cannot call a function with ng-click
I’m learning Angularjs and I have a problem that I can’t solve. I have a function inside a controller that’s inside a module. This function is responsible for mounting an accordion element with…
-
2
votes1
answer126
viewsProblems $Scope mdDialog Angularjs
Good morning guys! I’m having trouble passing an array to an Md-dialog. Clicking an edit button sends the array in $Scope via locals to the Md-dialog controller, so I can change the data and save…
-
2
votes1
answer60
viewsBanner Rotary
Hello, use Angularjs and wanted to put it to change the slides from 10 in 10 sec. I’ve tried a few codes and I couldn’t. Anybody got a tip? Here comes my controller. (function () { 'use strict';…
.net angularjs angularjs-directives angularjs-scope angular-moduleasked 8 years, 6 months ago Biellx 461 -
2
votes1
answer660
viewsUi-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: When I click on "My registration data" it is…
angularjs angularjs-directives angularjs-scope angular-routes ui-routerasked 8 years, 5 months ago Biellx 461 -
2
votes2
answers42
viewsModifying my Isauthenticated value in Angularjs
When the token is different from null my Isauthenticated has to be positive, app.controller("HomeCtrl", function ($scope, $location) { let token = localStorage.getItem("token"); $scope.user =…
asp.net-mvc angularjs validation angularjs-scope tokenasked 7 years, 8 months ago Jefferson Souza 167 -
1
votes1
answer915
viewsTree menu / Collapse with three levels
I’m creating a navigation sidebar for an Angularjs application. The structure is basically a tree menu, but each level has different interactions (which I will still build). For example, the first…
javascript angularjs menu angularjs-directives angularjs-scopeasked 10 years, 1 month ago Samuel Guimarães 121 -
1
votes1
answer601
viewsNg-repeat and Angularjs Beginner Error
I’m starting at the angular and I still don’t quite understand the workflow of it. The code below does not work: <body ng-app> ... <div ng-controller="Grid" class="gol-grid"> <div…
-
1
votes2
answers987
viewsAngularjs | How to define a boot process for a controller?
I have an app full of Ajax that needs to get data via Webservice when the page loads. I’ve already initialized via ng-init but I don’t know how to have the controller "load" and execute the code…
-
1
votes1
answer462
viewsProblem when receiving a radio button value
I’m starting to mess with Angularjs and I had a little trouble messing with radio Buttons. My HTML code: <!DOCTYPE html> <html> <head> <title>Temperature…
-
1
votes3
answers1293
viewsHow to use ng-repeat in an object list?
How to use ng-repeat in the Region attribute of the object? Example: ng-repeat="item in objeto.RegioesFilhas Object: var objeto = { "DescricaoRegiaoVaga": "", "IdCidadeCorreios": "1",…
-
1
votes2
answers615
viewsError 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 into the element of the index.html page. Inside the controller I am making an…
-
1
votes1
answer730
viewsPrevent duplicate entry into a list using Angularjs
HTML: <div class="container" ng-controller="ListaComprasController"> <div class="row"> <div class="page-header"> <h1>Lista de compras</h1> </div> </div>…
-
1
votes1
answer787
viewsng-click button inside a label
My intention is for a close-up button to appear inside the input so that by clicking on it, the search query is reassembled and returns all the items again and not just the items of the search in…
-
1
votes1
answer1245
viewsProblems with ng-required and ng-disable
I have a web application, where a person can enter their skills but if there’s a bug that allows them to enter blank skills, then I’m trying to use the ng-required in the input and the ng-disable on…
javascript angularjs web-application angularjs-scope scopeasked 8 years, 8 months ago Gustavo Moreira 45 -
1
votes1
answer329
viewsAngularjs controller does not work well
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…
-
1
votes1
answer241
views$Conditional Room at Angle
Hello! I got these radio Buttons: <div class="row" ng-controller="GetDados"> <div class="col-lg-10 col-lg-offset-5"> <label class="radio-inline"> <input type="radio"…
-
1
votes1
answer1094
viewsShare object between two controllers in Angularjs
I’m studying AngularJS and I’m trying to make a CRUD simple, however I am not able to have the same object of my listing for my form, that is, at the time you click the edit button go to the form…
javascript java angularjs angularjs-scope angularjs-factorysasked 8 years, 4 months ago Felix Ferreira 13 -
1
votes1
answer118
viewsAngle variable scope not updating
I have a bizarre problem with a variable that I created in HTML with Angularjs. I even tried to instantiate it in Controller to see if that was the problem but no. I have a button that on ng-click i…
-
1
votes1
answer21
viewsUsing return of an Angularjs method in another controllerJS
I have this method in my controllerJS script and would need to use the Response of this method in another controllerJs. How do I do ? app.controller("loginController", function($scope, $http,…
-
1
votes1
answer4763
viewsHow to Get Another Component Variable
I have the following situation: utils-Nav-user.component.html <nav class="navbar fixed-bottom navbar-expand-lg navbar-dark bg-dark"> <a class="navbar-brand text-white">ESC - Sistema De…
angular angularjs-directives angularjs-scope angular-routesasked 6 years, 9 months ago Ederson Coelho 143 -
1
votes1
answer223
viewsHow to create a directive in Angularjs that creates a mask and did not modify the ng-model?
I created a directive where it serves as a mask for current account, so when I type a value always the most right value in the input is the digit of my account, until then beauty, is working. The…
angularjs angular angularjs-directives angularjs-scopeasked 6 years, 7 months ago Jonathan Guilherme 13 -
0
votes0
answers195
viewsSync issues when sharing objects with Factory and $watch
I am trying to make a list of places by neighborhood. This data comes from different Urls: www.example.com/api/lugares/bairro/1 www.example.com/api/lugares/bairro/2 the ID neighborhood is generated…
-
0
votes2
answers4914
viewsHow to get value from a form with Angularjs?
I’m starting with Angularjs and a question has arisen that seems to me to be simple. I’m making a shopping cart (just for learning) with the little I’ve learned (ng-controller, ng-repeat, ng-model,…
-
0
votes1
answer606
views$modal.open(), problem with "controller" parameter declaration
I am trying to open a modal through the view, by the showModal() method, the problem is that I get an error referring to the controller declaration "editCrtl", which is very strange, since it is…
-
0
votes1
answer242
viewsCreate a directive
Hello someone could help me, I’m just starting my teachings in angular and would like to know how I would create a directive for the list of categories and tasks. I have no idea what could be done,…
angularjs angularjs-directives angularjs-scope angular-moduleasked 9 years ago Larissa Mourullo 417 -
0
votes0
answers35
viewsAngular No Heroku Accesses URL Typing
I would like to ask a question, I am making a soft with Angular 5 and Restful Webservice when I test the location I can access the URL normally directly when I try to do this with the application in…
angularjs-directives angularjs-scope angular-routes angularasked 6 years, 9 months ago Ederson Coelho 143 -
0
votes1
answer680
viewsAccess an attribute from another module
I need to update the values within the message directive through the keep-vendor-form directive, both are within the keep-vendor directive. Is it possible ? If so, how do I do it ?…
-
0
votes1
answer440
viewsAngularjs: Change scope in ngRepeat
I have the situation: in the table below, when I click on "edit", displays the form with the required fields (including with a new "cancel" button). So far everything is working well. The problem is…
-
0
votes0
answers390
viewsUsing angular and Ionic, how do I traverse a vector by summing a variable of an object?
I have a vector of objects with prices, product name..., after the customer has clicked on a product I pass it to another list, of orders, after being done this need to make me add up the prices of…