Questions tagged as 'angularjs'

1
answer

Cordova network plugin does not work on a controller

I am using a plugin in order to get the status and connection type of my mobile device through an application. But the plugin only works within $ionicPlatform.ready , at least that happened to me, when I execute it within controller...
asked by 22.10.2016 / 18:17
5
answers

How to show data obtained from an object in angularjs?

I just made a query to my database which I return object These store them in localstorage localStorage.setItem("Tickets", JSON.stringify(response)); and in another function I call them like this: var headshot = loc...
asked by 11.10.2016 / 20:37
2
answers

How to consult the database in angularjs?

I'm working with angularJS, a project created with YEOMAN-Generator! and I need to consult a database. I thought I could integrate php with a simple query but it still does not leave me. As I did? Well, here's the code: Inside th...
asked by 11.10.2016 / 17:57
3
answers

How to render the content of a variable in the view? [duplicate]

I have a variable like the following in a controller of angular : $scope.dato = "<h1>MI TITULO</h1>"; I want it to be shown in html , but rendered ... something like the following: MY TITLE In the view I put...
asked by 15.07.2016 / 22:07
1
answer

Filter in angular js (ionic framework urlRouter provider)

I am consuming a web services which returns me a json, What I'm doing is first of all put a list of each object with its content and id, When I click on an item I use parameters by url and I enter it by id, since its value is unique, but I have...
asked by 11.05.2016 / 05:30
1
answer

Remove html tags when doing binding on angularjs

I have a json which contains text with html tags. I would like to know how to remove these tags I have been checking that ng-bind-html help, but I really do not know how to implement it. I hope you can help me. Below I share my files Json...
asked by 18.05.2016 / 04:52
2
answers

Change the value of an accumulator when a toggle is true or false

I would like to know how I can increase and decrease an accumulator, but depending on the status of the toggle (checkbox). I was able to get it to accumulate when both are active but when, I want to put one in false, it does not decrease, but...
asked by 23.05.2016 / 15:58
1
answer

How to control the responses of http requests with angularjs

I would like to know how to handle exceptions in angularjs. What artifacts can I use or how to implement error handling. I have the following code: This is an example of my JSON. Now what I would like to validate is if the list "listProduc...
asked by 20.06.2016 / 20:08
2
answers

Inject a service or factory into a controller in angular.js

I'm getting into the world of angular, and trying to inject a service or factory into a controller, but I get errors. I make a call $ http.post using a controller var app; app = angular.module('AppUPC',[]); app.controller('formul...
asked by 22.02.2016 / 17:27
1
answer

Load templates and angular controllers using require.js

I have a problem using require.js and angular.js to load modules asynchronously, and is that many times when making a minimum change I always get the following error:    Uncaught ReferenceError: angular is not defined main.js...
asked by 29.02.2016 / 16:40