Questions tagged as 'scope'

1
answer

Problems with ng-required and ng-disable

I have a web application where a person can enter their abilities but if there is a bug that allows them to enter blank skills, then I am trying to use ng-required on input and ng-disable on my button to this does not happen...
asked by 03.03.2016 / 20:37
1
answer

AngularJS get the $ scope and concatenate in a URL

app.js angular.module("FipeApp", []); angular.module("FipeApp").controller("FipeAppCtrl", function($scope, $http) { $scope.app = "FIPE APP"; $scope.tipos = [{ nome: "Carros", id: "carros" }, { nome: "Motos", id: "mot...
asked by 23.11.2015 / 20:26
1
answer

Reach problem in C ++

I'm a beginner in C ++ programming and I came across a problem when I tried to run my code in atom , using the gpp-compiler package and MinGW: 'function' was not declared in this scope l.8). I did not understand the reason for the error, can an...
asked by 11.02.2018 / 01:22
1
answer

Doubt Scope of Javascript Variables

In the code below I try to use the lastLatitude and lastLongitude variances outside the local scope. I need them in the beginning. I've tried many things, can anyone help me understand? <script> var lastLongitude = ""; va...
asked by 02.03.2017 / 18:56
1
answer

How to create Scope in Laravel 5.4 with tables linked through belongsToMany

The structure of the table is this: pessoa id - integer nome - string unidade id - integer nome - string pessoa_unidade pessoa_id - integer unidade_id - integer I have the templates: class Pessoa extends Model { pu...
asked by 06.05.2017 / 12:49
0
answers

$ scope does not visually refresh the data I fill in with JavaScript

I'm filling my $scope via JavaScript using the following code: myApp.controller('gruposController', ['$scope', '$http', '$window', 'usuariosFactory', '$timeout', function ($scope, $http, $window, membrosFactory, $timeout) { // C...
asked by 18.10.2015 / 21:31