Questions tagged as 'angularjs'

1
answer

Convert $ scope to string in ng-model by AngularJS

I am in doubt, according to the Angular tutorial ng-model only accepts a $scope if it is string , giving: Error: [ngModel:numfmt] expected '1234' to be a number Possible to convert to string ? Edit: HTML code: <div moda...
asked by 07.12.2015 / 02:38
1
answer

How to make a list of categories with a task counter fulfilled and not fulfilled?

Good evening, I'm like a doubt, I'm trying to do a dynamic task counter, that completed tasks should be presented on another page. I have the following HTML of tasks fulfilled: <!doctype html> <html ng-app="todoApp"> <head&...
asked by 21.12.2016 / 02:40
4
answers

Generate angular pdf using javascript

I'm trying to generate a pdf in my application made in angular and I have the following code in controller.js: function gerarPdf(){ restService.relatorio.save({ id: controller.contrato.id, folha: controller.recei...
asked by 22.12.2016 / 12:10
1
answer

How to make a query to a web api, passing parameters using angularJS?

I have the current script: (function () { 'use strict'; var numeros = angular.module("myModule", []) .controller("myController", function ($scope, $http, $log) { var sucessoCalBack = function (response) {...
asked by 09.01.2016 / 04:07
1
answer

Problem with slidebox and ng-repeat in the ionic framework

I'm trying to create the slidebox of the ionic framework with data returned from the database and the slide is not appearing on the screen. I already tried the solution for this in many places but I only found that I have to use the ionic update...
asked by 11.08.2015 / 15:48
1
answer

Angular Directives with methods of constructing objects

I'm trying to create a directive that is an input that makes an object available in $ scope only if it is successfully created by its constructor method. I want the value to be assigned only to the variable in the scope if it is the result of...
asked by 11.12.2014 / 03:55
2
answers

Problems with $ http and ng-repeat angularjs beginner $$ hashKey

Hello, I'm a beginner in Angular and I'm finding it very nice, my problem is this: I have a ng-repeat that works fine when I get the data source of a javascript variable like this: var alertsq = [ { "alert":"mediun", "nt":"28",...
asked by 10.12.2014 / 00:26
1
answer

.json file is not created in angularJS

I created a controller and a service. Here are some examples of what's happening: Controller eventsApp.controller('EditEventController', function EditEventController($scope, eventData){ $scope.event = {}; $scope.saveEvent =...
asked by 03.05.2015 / 21:56
1
answer

How to access a dynamic id through a directive?

Problem: I need within an angular directive, access a dynamically-mounted id inside an ng-repeat, and thereby manipulate the class of a specific item. In short, I'm using the accordion bootstrap example, and on my panel I have a ng-repeat tha...
asked by 11.02.2015 / 19:14
1
answer

How to sum results from a list and display result in a popup in ionic?

I have an actiosheet that opens a popup: InthepopupIwantthetotalofthevaluesinthelisttobedisplayed.Thatis,Ineedtoadd/accumulatethevaluesinthelistanddisplaythesuminthepopup(inthecodebelowthisvalueisfixed).Couldyouhelpme? angular.module('start...
asked by 16.08.2016 / 16:10