Questions tagged as 'scope'

1
answer

Filter in Laravel for work not done, incomplete or completed

I have been looking for a solution to this problem for some time but I have not found anything that I can adapt. There are two tables ordensiembras and siembras , one order can have several sowings. The Ordensiembras mod...
asked by 25.11.2018 / 18:15
2
answers

Answer from http.get in Scope

I'm writing a driver in AngularJS that calls http.get to an API, and returns a 0 (for now). I can show the 0 by console without problems, but I can not show it in a $ scope in the front. App.js .controller('ssnGenAltaCtrl', ['$scope',...
asked by 30.12.2016 / 14:12
1
answer

Angular $ scope model is not updated

I'm trying to do the following, a query to 2 apis. The first query is to bring the data of a given city, I use it with promises. The second query is, to bring from that data 7 more data given longitude, latitude and date, I made it using a...
asked by 09.11.2016 / 03:48
1
answer

how to do a search engine in laravel with related tables

hi good morning community today I would like to ask you how to do a scope in Laravel but this is related to other tables, here in the example I'm looking directly only the id of the installer and I need to look for it through the name but when I...
asked by 28.11.2018 / 15:41
1
answer

Use variable $ scope

I have a function where I obtain parameters from an API via $ http.post, the parameters that return are saved and printed inside the same request, however when I use them out the variable appears empty. $scope.gama = {}; factoryGamas.buscarGa...
asked by 28.11.2017 / 18:31
1
answer

Scope ruby comments rated lower

I'm a neophyte in this Ruby, and for an application I'm doing, I need to define a method and a scope to show me the worst rated comments in ascending order: first worst and then improving. I have written the inverse, thanks to some guidelines...
asked by 21.02.2018 / 19:55
1
answer

Use variable out of cycle for NodeJS

I am trying to fill an array using the 'push' function within a for loop, but calling the array out of the loop is still empty. They could help me understand how this part works. app.get('/ReturnStatus', function(request, response) { var c...
asked by 19.10.2018 / 21:05
1
answer

Scope in Laravel with related table

I'm stuck in a filter: These are my tables: My model for Movement public function factura() { return $this->belongsTo('App\Factura'); } public function cuenta() { return $this->belongsTo('App\Cuenta'); } public fu...
asked by 29.12.2018 / 23:58
1
answer

Javascript: Example with Scope and Closures

I was looking for information about Scope and Closures, and I thought I had already understood it, when I see this example on the page that was the information: let a = 1; const function1 = function() { console.log(a); a = 2; }; a = 3;...
asked by 15.07.2018 / 07:04
0
answers

What would be the best way to upload data to a form to update with the Angular JS framework?

// create the module and name it scotchApp var scotchApp = angular.module('scotchApp', ['ngRoute']); // configure our routes scotchApp.config(function($routeProvider) { $routeProvider // route for the home page .when('/', {...
asked by 20.04.2018 / 03:06