Tagged Questions
AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Controller (MVC) capability and reduce the amount of JavaScript needed to make web applications functional. These type of apps are also known as Single-Page Applications.
0
votes
0answers
19 views
Dynamically load HTML from template
I have some trouble with creating my popup directive in which I would like to get some template from server and place it in popup div then show it on screen. Also I would like this popups to have own ...
0
votes
0answers
7 views
AngularJS and Karma Unit Test with Directive failing on property undefined
I just upgraded from angular 1.1.4 to angular 1.2.6, and some unit tests that previously passed are now failing - I was wondering if anyone out there has seen anything like this.
Here is the ...
0
votes
0answers
11 views
best way to write Jasmine Test for DOM directive
I am a newbie to Jasmine BDD test for Angular JS - Can any one tell me a simple test case for this
My Directive
var app = angular.module('gls', []);
app.directive('changeBg', function() {
...
0
votes
1answer
6 views
Angularjs Inter directive communication (parent-child directives) with a named ctrl of the parent directive
from the docs, and numerous other examples, It seems that the best way to handle common functions and communication between directives is requiring a "parent" directive and then the controller of the ...
0
votes
1answer
17 views
Why doesn't the instantiated controller show my message?
In my angular HotorNot games/show.haml code this doesn't work:
.game{'ng-controller' => 'GamesCtrl as game'}
%h1 Hi {{game.player}}, Is this person Hot or Not?
while this does:
...
1
vote
1answer
24 views
How could I change this angular function to use a directive
I'm am aware that dom manipulation isn't suppose to be in the controllor so I was curious on what the proper "Angular" way to handle these jquery events.
Here is one of my controllers function
...
0
votes
2answers
15 views
Angular JS interpolation error in FireFox
My dates come out of the database looking like this: 2013-11-21 17:43:20
The following code is buggy in FireFox but works perfectly in Chrome:
<ul class="job-lookup-results" ng-show="data" ...
0
votes
1answer
21 views
AngularJS multiple parameter filtering with circular dependency
I'm trying to create an index of shops, showing them grouped by category, so i have two ng-repeat, one for the categories and another for the shops
i have an array for the categories
(['cat1', ...
1
vote
0answers
34 views
How to add callback to custom angular resource?
I have the following files.
EDIT: If you are interested, you can view the whole app at https://github.com/gallarotti/collaborative-minds
views/Lists.html:
<div ng-controller="ListsCtrl as ...
0
votes
0answers
36 views
How to update a textfield based on other form elements
I'm writing a little database query app.
What i'm trying to do: Each time a checkbox is clicked, i'd like for a query that includes the selected fields to be generated and inserted into the textarea.
...
0
votes
2answers
21 views
How to create a SPA with Angular and MVC5
I have some back end services that I can easily surface using WebAPI and I want to call this resultant WebAPI layer from my front end. I want to build a SPA using ASP.NET MVC 5, .cshtml files and ...
1
vote
2answers
31 views
Angular directives with ng-if seem to loose model
I am fairly new to Angular and trying to make a directive that will construct a form input, usually a text-input, but sometimes a select box based on whether or not the input is associated with an ...
0
votes
2answers
19 views
AngularJS creating a service with dot syntax API
I wanted to create an API service that my controllers can use instead of directly interfacing with the $http service.
I have:
app.factory("API", function($http) {
var service = {
...
0
votes
1answer
15 views
Firebase loop look up data
$scope.authorizedUsers = [];
fbRef.child('folders/').child($routeParams.folderID).once('value',
function(ss) {
ss.forEach(function(childSnapshot) {
...
0
votes
0answers
16 views
call ng-change after selecting values from two dropdown
<div ng-repeat="variant in variant_options" class="col-md-4">
<select class="form-control" ng-change="calculateProductPrice(variant_values)" ng-model="variant_values">
...