AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Controller (MVC) capability, reduce the amount of JavaScript needed to make web applications functional. These type of apps are also known as Single-Page Applications.

learn more… | top users | synonyms (1)

0
votes
0answers
9 views

How to pass a collection to a directive in angular.js?

Please forgive my lack of understanding. I pass the name of a collection to my directive: <ul tag-it tag-src="preview_data.preview.extract.keywords"><li>Tag 1</li><li>Tag ...
0
votes
1answer
8 views

AngularJS 1.2.0 ngBindHtml and trustAsHtml not working with ngModel

I feel like this should be really easy since I had it working perfectly with Angular 1.0.8 using ngBindHtmlUnsafe. I read on the API docs and on StackOverflow that I need to use $sce.trustAsHtml() ...
0
votes
1answer
15 views

Vew not updating after scope update

Here is a very simple example of what I am trying to do Athlete.save(athlete,function(result) { $scope.athlete = result.athlete; }); The issue is that the $scope.athlete variable does not ...
0
votes
1answer
20 views

Instantiate custom angular controller

How to instantiate a custom controller from code and preserve scope inheritance. In other words I want to do something like this: var controller = 'myCtrl'; var html = '<p>{{value}}</p>'; ...
1
vote
0answers
20 views

How to redirect url if dynamic url parameter gibberish

I have users in my db and i want to route with user id like this http://something/#/home/1 . but when you write gibberish thing like this http://something/#/home/123123424sddf, I want it to redirect ...
0
votes
1answer
17 views

JS: Find URLs in Text, Make Links

What would be the following PHP code rewritten in JS be, so that url links inside of text blobs could be replaced with html links? I've started a jsfiddle. <?php // The Regular Expression filter ...
0
votes
0answers
4 views

Adding array of images to Firebase using AngularFire

I'm trying to allow users to upload images and then store the images, base64 encoded, in firebase. I'm trying to make my firebase structured as follows: |--Feed |----Feed Item |------username ...
0
votes
0answers
3 views

what are $$hashkey objects in Angularjs? How can I read multiple file inputs?

I am trying to get multiple file attachments from file inputs using the following directive: var app = angular.module('app',['ui.bootstrap']).config(function($interpolateProvider){ ...
0
votes
1answer
14 views

AngularJS data binding redrawing inside ng-repeat

If i had a scope like this one $scope.array = [ { a: 1, b: 2 }, { a: 2, b: 1 }]; With a view: <div>A: <div ng-repeat="obj in array">{{obj.a}}</div> </div> Having in ...
1
vote
1answer
24 views

AngularJS ng-click broken by {{$index}}

I'm having an issue with AngularJS where when I use $index it breaks the ng-click function. This is being done within a div that uses ng-repeat, the repeat code works correctly... <a ...
0
votes
0answers
12 views

Angular service using $watch to do $http call when a property is changed

I'm pretty new to Angular and wondering what the best way to handle this is. My app is structured with a service that keeps track of the app state and currently loaded data. I inject this into all my ...
0
votes
1answer
31 views

JS: Convert plain text url (within blob) to link or iframe

Looking for a javascript solution for converting plain text urls (inside text blobs) into anchor links or iframe videos, on the fly (or on page load). Here's a rails example of what I'm looking for: ...
1
vote
2answers
14 views

Django: How to receive QuerySet with $getJSON in Jquery or $http.get in Angular.js?

In ASP.NET MVC or ASP.NET Web Api, I can receive data in jQuery or Angular.js if my C# code like below: return Json(list, JsonRequestBehavior.AllowGet); I'm newbie to Django so I don't know how to ...
0
votes
0answers
18 views

routingProvide not found AngularJs

I am just trying to learn Angular.Js and got stuck here watching a tutorial. I just created a demo App with the following code ... and I am getting an the following error. Any help would be greatly ...
0
votes
1answer
20 views

angularjs directive, jquery class selector not working

I have an angular directive that displays a treeview. When you click on the li icons it is supposed to hide the nested ULs. Here's the code that matters: (this is in a click function where e is ...

15 30 50 per page