Tagged Questions
1
vote
1answer
55 views
Manipulating object structure
I've found an angular directive which takes an object like below and turns it into an expandable tree:
$scope.dataForTheTree =
[
{ "name" : "Joe", "age" : "21", "children" : [
{ "name" : ...
0
votes
1answer
183 views
Angular custom module - “object function(){…} foo has no method 'bar'”
I'm trying to create a custom wrapper for $http in angular. Here's the code outline:
angular.module('jotted_resource', ['ng'])
.factory('jotted_resource', ['$http', 'communicationStatus',
...
0
votes
1answer
601 views
AngularJS - filtering Javascript Map
I've been trying to implement filtering JS Map Object (array indexed by an id) instead of the usual js array in angularJS.
For illustration, below is a slight modification of the filtering example as ...
0
votes
1answer
92 views
Append to JS Object
I'm wanting to append something to a JS Object similar to how you can push to an array. I know that you can't push to an object. So I'm trying to find another solution. It's a funky workaround to ...
0
votes
1answer
350 views
How to create angular models from same prototype without binding?
I have a small issue. I have an object which I want to use to create two angular models without binding, based on initial object as prototype:
var def = {
value: 'example'
}
in Angular:
var c = ...
0
votes
2answers
355 views
How to get value of property in javascript object?
I have an object which has status property. But I can't get the value of this property. Here is my code sample:
console.log("Resource.query()");
console.log(Resource.query());
...