Questions tagged as 'angularjs'

2
answers

directive to put input fields in uppercase with angularJS

I created the following directive, for when a user types in the input to be converted to uppercase, however, when I need to edit this field to insert a word in the middle of what I had already typed, he plays the mouse cursor at the end of the i...
asked by 29.06.2015 / 22:05
1
answer

Failed to perform request with Angular.js $ http is not defined

I'm starting to use angular.js, I'm studying a Tutorial (Definitive Guide to Learn AngularJS in One Day) , but at first I already had problems with the $ http request. I'm getting the message: $ http is not defined In the Index header I incl...
asked by 12.02.2015 / 12:37
1
answer

How to use an ng-class in the html tag

I'm using the AngularJS framework and I need my tag to receive a dynamic class example: <html lang="en" id="ng-app" ng-app="app" ng-class="app.title"> </html> This app.title will receive a mongo value. Can anyone tell me if t...
asked by 30.12.2014 / 18:37
2
answers

Cat Loop Repeat Loops

How to create a dynamic form in the angular, this form is composed of categories and types. It was supposed to create a tab with the various categories and within each category show the types. Below is the code example. <div class...
asked by 18.12.2014 / 15:37
1
answer

Angular Search Result in another view

I have a search form with 2 selects and 1 submit: <select ng-model="marca" ng-options="marca.nome_marca for marca in marcas" ng-change="changeMarca()"> <option value="">Selecione uma Marca</option> </select>...
asked by 20.07.2015 / 18:28
1
answer

Directive is executed 2 times

I have the following "directve": app.directive('modal', ['$window', function ($window) { return { restrict: 'C', link: function (scope, element, attrs) { scope.onResizeFunction = function() { console.log(attrs.id);...
asked by 12.03.2015 / 19:08
1
answer

Save, Delete and Get in AngularJS

I'm doing a fake "CRUD" in AngularJS and I'm having problems with save, delete, and get functions. Only the query () function worked. Can you help me out, please? I saw that the reason is something related to array, I already changed the save fu...
asked by 10.11.2014 / 21:34
1
answer

Routing with parameter "id" ends in white page

When I do routing with the id parameter ends in white page. link My app starts the posts appear, so I click on the post it goes to the other page and "it was to appear the content" but everything goes blank. var app = angular.module('app'...
asked by 06.11.2014 / 12:45
1
answer

Get full array with AngularJS

Template <input type="text" data-ng-model="item.title" list="comicstitle"> <datalist id="comicstitle"> <option data-ng-repeat="ttl in titles" value="{{ttl.name}}"> </datalist> js $rootScope.titles = [{"id"...
asked by 06.11.2014 / 01:01
1
answer

Build Gulp Error

I am working on a project with phonegap / angular, so I did all the steps as I am accustomed. I have installed node, bower, gulp, angularjs, phonegap and cordova. So I "cloned" the project, installed bower / angular / gulp locally in the project...
asked by 26.02.2015 / 15:31