Questions tagged as 'angularjs'

1
answer

Set $ scope value of a Controller from an Angular Directive

I'm trying to get an object from a Controller from an event in a directive, the controller's method call is already correct, but it seems like $scope within this method is wrong , since if $scope.file.data from the call of the even...
asked by 30.04.2015 / 19:30
1
answer

How to pass an Array to AngularJS?

array ( 0 => Pessoa::array ( 'nome' => 'Paulo', 'idade' => 15, ) app.controller('meuCrtl', function ($scope, $http, $timeout) { $http.get('ajax/getPessoa.php').success(function(data){ $scope.list = data; ......
asked by 28.04.2015 / 18:13
2
answers

Pass data via POST in AngularJS to PHP API

Good afternoon I need to pass data via post using angularjs to an api php data appear in the controller but not in api PHP. if( isset($_REQUEST['mes']) ) { $mes = $_REQUEST['mes']; } else { $mes = date('m'); } In the controller I...
asked by 14.07.2015 / 20:00
1
answer

How to do Filter after pressing any key on the keyboard, ENTER for example

Is there any way to do the registry filter from the enter, not at runtime as is usual for the Angular?     
asked by 02.03.2015 / 20:38
2
answers

Sorting objects in a Json without id in Angularjs

How can I order the display of an array of Json objects in Angular, ng-repeat ? orderBy ? json has no id to do this sort order, I would like to be able to sort it by "last added" string.     
asked by 16.07.2015 / 15:17
1
answer

Change path path with grunt

I have a problem with my application. It will be all angular, but I need to know how I can change the path of my javascript according to my environment. Example: If I'm developing in the dev environment it will use style.css ,...
asked by 26.02.2015 / 20:37
1
answer

Test variable content

Using ASP.Net MVC and AngularJS I tested the contents of a view field like this: $scope.estado.ldRedeBasica = @(Model.ldRedeBasica == null ? "[]" : Html.Raw(Model.ldRedeBasica)); Only returned the following error:    Compiler Error Me...
asked by 27.03.2015 / 18:29
1
answer

Demand Routing for Controllers

I'm creating an application that uses angularJS and I'm new to this library. My problem is that when I see the way it does $router I understand that there is some way I can also route other angular elements like controllers, services, fac...
asked by 19.05.2015 / 16:56
1
answer

Interacting with the linux system

Is there any function or way of getting javascript / angularjs to communicate with linux? For example: <!doctype html> <html ng-app="myApp"> <head> <link rel="stylesheet" type="text/css" href="lib/bootstrap/...
asked by 26.05.2015 / 19:24
1
answer

How to get a POST parameter in REST application

I started a Rest application and I have a createPost java class POST @Path("/post/") @Produces(MediaType.APPLICATION_JSON) public static String createPost(@FormParam("loopID") String loopID) throws IOException { Conn...
asked by 27.01.2015 / 21:46