Questions tagged as 'angularjs-scope'

1
answer

Ng-repeat and AngularJs beginner error

I'm starting at angular and I still do not understand the workflow of it. The code below does not work: <body ng-app> ... <div ng-controller="Grid" class="gol-grid"> <div class="row" ng-repeat="row in board track by...
asked by 01.12.2014 / 20:11
1
answer

Dropdown in the modal does not see scope of the controller Angular JS 1.5

Good morning. The problem is this, I have a news feed page and inside it I use a Modal Angular UI - Modal to display information for a specific post. I have a DropDown with two options, "Delete" and "Edit". DropDown <div class=...
asked by 05.01.2017 / 13:56
1
answer

Create a policy

Hello, someone could help me, I am just starting my angular teachings 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 if you can help me. HTML: <body> &...
asked by 25.10.2015 / 05:39
1
answer

Assign a value to a variable in a controller and not modify the value of the $ scope variable

I would like to know why when I assign the value to a variable within a controller from a $ scope variable and change the value of that variable, the value of the $ scope variable is also changed. For example: $scope.viagem.valorFrete = 1.500,...
asked by 11.03.2018 / 02:42
1
answer

How To Catch The Variable Of Another Component

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 Controle De Pizzaria - </a> <a...
asked by 15.02.2018 / 03:00
2
answers

Angular does not recognize an out-of-control variable

I have a doubt, I have already tried other forums and I did not find the solution. I tested the code below for demonstration purposes only. *//dentro do controle do angular* angular.module("NaBalada").controller("NaBaladaLocal", function(data)...
asked by 26.04.2017 / 01:08
1
answer

AngularJS value $ scope out of view

I have a question in the angularJs that I can not solve, my index.html is the following: <div ng-show="error" class="alert alert-danger">{{error}}</div> <div ng-show="success" class="alert alert-success">{{success}}<...
asked by 19.06.2016 / 00:22
1
answer

AngularJS: Change scope in ngRepeat

I have the situation: in the table below, when I click on "edit", it displays the form with the necessary fields (even with a new "cancel" button). So far everything is working well. The problem is that when saving, the form should disappear (ng...
asked by 05.01.2016 / 22:15
2
answers

How to get value from a form with AngularJS?

I'm starting with AngularJS and there's a question that seems to me to be simple. I'm doing a shopping cart (just for the same apprenticeship) with what I learned (ng-controller, ng-repeat, ng-model, etc.). I have a list that comes from th...
asked by 23.10.2015 / 16:17
1
answer

How to receive a directive within a component in AngularJS

This photo illustrates what I want to do: Link to TOTVS AngularJS documentation This is the snippet of form I'm trying to do this. I am getting the components required , number and maxlength within validation ....
asked by 03.12.2018 / 16:21