Questions tagged as 'angularjs'

1
answer

How to get the current date with angularJS with refresh on date?

How to make a refresh only in a "ng-binding" and not in the page, to get the current date via angularJS? I have the following code: function updateTime() { scope.time = new Date(); } But I need to do a refresh...
asked by 25.11.2014 / 18:35
1
answer

AngularJs indexOf of Object

Every time I select a bundle, I add in an array, example: Items are some data that I get, I just passed a few to test var items = [755, 20, "E", 274] $scope.selectBundle = function(){ var info = { cod: items[3], bundl...
asked by 24.11.2014 / 20:26
3
answers

Apply "datepicker" to element after angular call

I'm having a problem, when loading an HTML block of the page via angular, the elements that have the class ".datepicker", activate the jquery of the "datepicker" plugin, however, so I noticed, the action that binds of this block is occurring aft...
asked by 14.11.2014 / 17:36
1
answer

Problem with 'Access-Control-Allow-Origin' in AngularJS

Follow the code angular.module('App', []) .controller('InstaController',function($scope, $http){ $scope.busca; $scope.buscar = function(){ $scope.getInsta($scope.busca); } $scope.getInsta = f...
asked by 14.11.2014 / 17:03
3
answers

How to filter a Text in a div with angle JS

The problem is to mount a filter in AngularJS to capture words, querys, within a text, for example as if searching a word in a craft. <div ng-app="" ng-controller="namesController"> <p><input type="text" ng-model="test"><...
asked by 30.01.2015 / 00:37
1
answer

Angular + RequireJS

Below is the code structure to facilitate: main.js require.config({ baseUrl: '/', shim: { angular: { exports: "angular" }, route: { deps: ["angular"] }, app:{...
asked by 14.01.2015 / 21:47
1
answer

Tree menu / collapse with three levels

I'm creating a navigation sidebar for an application in AngularJS. The structure is basically a tree menu, however each level has different interactions (which I will still build). For example, the first and second levels will only show and hide...
asked by 06.10.2014 / 19:12
1
answer

Angular.js failed to instantiate the module

Well, it's the first time I've been doing anything with Angular.js and I'm getting a bit of a "Bad Login and Passwords" message with it. I have a method in a .js file that is below: angular.module('myApp',[]) .controller('loginControl...
asked by 12.09.2014 / 02:08
2
answers

How to insert data taken from a JSON file and put in a list with AngularJS

app.js (function(){ var myApp = angular.module('loja', []); myApp.controller('CarrinhoController', ['$scope','$http', function($scope, $http){ $scope.title = 'Lista de Produtos'; $http.get('js/produtos.json').succe...
asked by 31.10.2014 / 04:53
2
answers

Consume Rest with AngularJS

I created a WebServices to get query by string and return a list, example: url / myPath / luiz - Since luiz is the parameter that will be passed, based on this parameter will return a luiz list. In AngularJS with you: List All, Search by...
asked by 25.09.2014 / 16:07