I have a json similar to this
[{id: 1, titulo: 'compra', valor: 50.00, data:'2014-10-23' },{id: 1, titulo: 'compra', valor: 60.00, data:'2014-10-24' } ]
I have a function to add, which adds a new item and one to remove.
The add function is...
I'm building an application that needs to render a dynamic form.
The form data comes from a json , and in it, I have the fields configuration.
Here's an example:
{
"Fields": [
{
"title": "Assunto",
"type": "text"
},
{
"title"...
I have a query to an API that theoretically is returning the data, at least in the console shows me the same. But in View with ng-repeat is not bringing anything.
Below is the code I'm using:
Factory:
pcFactories.factory('Teache...
I'm trying to get some data via WS (Web Service), but when I ask to return in my app it gives this error:
In 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
But...
Does anyone know if it is possible to access a policy through a controller?
The idea is for my controller to check a flag that is instantiated in the policy since it checks to show some results.
I do not have a specific code because I want...
I have the following data in an array
var array = [
["755", "20", "E", "274", $$hashKey: "0AK"],
["756", "20", "E", "274", $$hashKey: "0B7"],
["455", "30", "E", "159", $$hashKey: "0BQ"],
["7...
My question is how can I filter objects from an array by comparing the id that is inside a "sub-object". Type:
animais [
{
id: 34,
nome: baleia,
categoria: {
id: 2,
nome: mamifero
},
{...
Does anyone know how to answer me how to make paging effects on my HTML page? For example I have a table but this table can only display 10 records at a time, does anyone have any idea how to do this using angularjs or jquery?
Does anyone know of a way to send an object from one angular directive to another?
I have 2 directives and need access to the object in both.
I'm not able to go through a parameter initially since the function is called through an event....
I'm trying to make a side menu that appears when the user clicks a button, using a .is-visible class
<button ng-click="visible=!visible;">Click me to open the menu!</button>
<div ng-class="{'is-visible':visible}" class="menu">...