Tagged Questions
AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Whatever(MV*) capability and reduce the amount of JavaScript needed to make web applications functional. These types of apps are also frequently known as Single-Page Applications.
0
votes
0answers
11 views
Multiple and conditions for ng-class
I was trying to use Multiple conditions with and operator in angular to assign a class, but its not working.
<div class="kt-btn" ng-class="{'aDisabled': ...
0
votes
0answers
5 views
Says error but submits in firebase
for some reason when you sign up the error Becomes INVALID_EMAIL. but first of all the email i entered is valid, second of all the email goes in my firebase auth as one of the users of my site. Help ...
0
votes
1answer
18 views
what's the difference between factory and service?
I am trying play with Angular factory and service. Anyone could tell me the difference between those two?
Does factory always returns a singleton, but service an instance?
0
votes
0answers
12 views
$scope.$apply() not updating template in dynamic directive
I am adding a directive dynamically, on click of a button.
When I am trying to update dynamically generated directive template from its link function, it is not updating, but I am getting updated ...
-2
votes
0answers
7 views
Cannot get 407 status code, when server return 407 to browser
When I use angular $http service to request data from server, server return 407 to me, because it requires authentication.
But I can not get the 407 status code in response, I get -1 instead.
and I ...
0
votes
0answers
8 views
Getting a single object from Restangular - unexpected output
I'd like to use Restangular to grab a single record from my REST API.
Using the built-in decoupling strategy, I define my service:
angular.module('app').service('Categories', function (Restangular) ...
0
votes
0answers
8 views
DI error on service constructor
I just start hacking Angular 2 and now I am trying to develop my first 'real world' app. Its meant to retrieve data from a restfull webservice, so I wrote this code:
boot.ts:
import {bootstrap} from ...
0
votes
0answers
7 views
UI Bootstrap custom pagination template/functionality
I am using UI Bootstrap for pagination. The default template currently does not meet my needs. I am hoping someone can point me to the right direction to create pagination UI or functionality that ...
0
votes
0answers
13 views
ngRoute not connecting well with my index.html file
Ok now i dont undestand the concept here. When i delete everything from registratoin.html, nothing actually happens to the result? Where is the #/ Going to? Im confused...
Here is my index.html:
...
0
votes
0answers
20 views
What could be controlling the placement of an absolutely positioned element besides left/right/top/bottom?
I'm trying to track down the styling controlling a page element in some very old Angular code I've inherited, and I'm quite stuck.
It's an absolutely positioned element without left, right, top, or ...
0
votes
1answer
9 views
Multiple view not updating variable in Angular JS
I am using a Factory in Angular JS to share data between 2 controller/sub-views using router-ui.
Factory:
app.factory('SharedData', function() {
return {data: {}};
})
JobsController:
...
1
vote
1answer
11 views
Jasmine controller and mock service not being injected into the unit tests
This is my test_sp.js file:
describe('Controller: MainCtrl', function() {
var ctrl, mockBaseService;
beforeEach(function() {
mockBaseService = {
cerrorMessages: ...
1
vote
1answer
18 views
AngularJS two-way data binding won't work
I've been experiencing angular for about a month now.
I'm familiar with all the core aspects of it, but i've encountered a problem that I don't understand.
I have 2 directives - one is the parent, ...
0
votes
0answers
8 views
Resolving a python array wrapped in Json with Angular.js $resource
I am working with webapp2 and Angular's $resource, I am having hard time finishing the job and resolving my data array from JSON format within my controller.
in my python handler, the array wrapper ...
0
votes
1answer
20 views
I need helping dismissing modal on submit. I am using angularJs for databinding, and Jquery and bootstrap (but not ui-bootstrap)
Button to launch modal:
<button data-hover="tooltip" title="Edit" style="height:25px; width:35px" class="fa fa-pencil" data-toggle="modal" data-target=".eCategory-modal-sm" ...
0
votes
1answer
13 views
IIS Express HTTP 403.14 when Debugging AngularJS SPA with WebAPI2
I've created a solution that contains a Web API 2 project as well as a separate HTML project to house my AngularJS SPA. The latter project contains index.html with app and Scripts folders. When I ...
0
votes
0answers
8 views
minify application materialize and jquery
I have an application with MaterializeCss, angularjs and jQuery. The application works fine, but when I get errors minifico materialize and jquery, know that it can be ??
0
votes
0answers
17 views
How to make API request to django from angular $http (ajax)
It's problem as this
I add Token (http://www.django-rest-framework.org/api-guide/authentication/#tokenauthentication) in Headers but still get 401
How it fix?
0
votes
0answers
17 views
Angularjs ng-repeat not updating when values are dynamically inserted via http request
I am getting some data with http and updating the $scope.comments variable.Then I display it with ng-repeat however variable is updating correctly but ng-repeat is not working. Here is javascript:
...
0
votes
0answers
16 views
What's the right way to conditionally display forms in AngularJS
I am working on a little project that supports search filters. I have a default select dropdown from which a user can select e.g. Product Name, Status and Date. These options determine which type of ...
0
votes
2answers
24 views
Angularjs text / data not showing up
I am building a very basic angular app to learn. My app basically loads a list of users and prints them all out on the home page with a checkbox next to each name and also displays the number of ...
0
votes
0answers
5 views
Why ng-map angular directive doesn't work when modals open ? (in plunker)
My Angular Module:
I used ng-map directive, I entered the coordinates here:
angular.module('ngMap').controller('mapCtrl', function ($scope) {
//Open Modal Function
$scope.open = function() { ...
-1
votes
2answers
13 views
Eliminate ng-change delay
I have two select boxes. When "Canada" in one box is selected, I want to hide the "Canada" selection in the other box.
I have already implemented it in my JSFiddle: ...
0
votes
0answers
13 views
angular unknown provider error when published site
I have developed a little app and now i wanted to publish it to azure for the first time.
It's my first time i use angular in any project and i have got something wrong.
I get this error:
Error: ...
0
votes
0answers
10 views
Angular Loading Indicator Custom element Directive
I have written custom angular element directive, which shows/hides loading indicator based on condition evaluated on service call. The directive is applied as element to element. The directive works ...
1
vote
1answer
22 views
Using angular-ui-select with angular seed project
I created a base project from https://github.com/angular/angular-seed and I'm trying to use angular-ui-select to add dropdown menus to this project. I installed angular-ui-select and added select.js ...
0
votes
0answers
43 views
JSON data is changing between $http.post and $http.get
I am having a hard time figuring out what the problem is. I have a JSON file that gets $http.post to the my work's server. I then call a $http.get to retrieve the JSON file and the retrieved JSON file ...
-1
votes
0answers
31 views
Choosing Bootstrap over AngularJS [on hold]
Based on my research, Bootstrap and Angular JS can only be integrated by using the alternative Angular UI Bootstrap. However, as far as I understand, the latter does not cover all features and ...
0
votes
0answers
11 views
AngularJS and Slim PHP - how to force load the new file content
Short introduction:
I'm using AngularJS + Slim v3 PHP in my application.
In my application, in Slim, I have file named update.php which contain two methods:
getNewVersion() - which downloads new ...
0
votes
0answers
8 views
Angular 2.0 Beta - Access DOM Adapter - BrowserDomAdapter
I' currently have a Component in Angular 2.0,
which tries to use the DOM Adapter API from Angular BrowserDomAdapter
. This DomAdapter will be initialized here
But by default I'm not sure about that, ...
1
vote
1answer
20 views
Angular filter specific field based upon select
I would like to filter an ng-repeat that I have based upon a select and an input. If the input is set to all then filter on all fields, if it is set to a different select value then only filter on ...
0
votes
0answers
9 views
Adding Angular directive using decorator
I'm using Angular 1.4.8 with Angular UI. What I'm trying to do is decorate the ui-sref directive so it will highlight a menu element (by setting the CSS class 'active') if the current $state.name ...
-2
votes
0answers
16 views
Add an angular app inside an MVC 5 Application [on hold]
I have an existing MVC Application that is using well mvc controller and razor. I'm trying to figure out how to add an angular application/module to the existing application. Should I just create a ...
0
votes
3answers
41 views
Remove Item from parent scope array
I am trying to remove an item from the json array defined in my controller after a user clicks delete button. The button resides inside a html template for the directive.
Here is my controller
...
0
votes
2answers
14 views
Angular: [$injector:modulerr] Failed to instantiate module
I've been trying to set up basic AngularJS functionality for a project but have been hitting a brick wall when it comes to including angular-route. Both are version 1.4.8. I'm currently using ...
1
vote
0answers
9 views
Parse JS SDK login does not keep the current user info using AngularJs ui routing
Here is my module config and run:
angular.module('FXBApp', [
'ui.bootstrap'
,'ui.router'
,'oc.lazyLoad'
,'parse-angular'
]).
config(['$urlRouterProvider','$stateProvider', '$ocLazyLoadProvider',
...
0
votes
1answer
48 views
Unexpected token < error using Angular2 while I try to add directive
I follow the 5min tour on angular.io;
This is my app.ts
import {Component} from 'angular2/core';
import {Banner} from '../components/banner/banner';
@Component({
selector: 'app',
...
0
votes
1answer
28 views
AngularJS Run execute function?
why in this script:
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<script>
var ...
0
votes
1answer
10 views
How to use Angular templating tags in Foundation for Apps?
I got this code from a Foundation for Apps page template here: Zurb
the code:
<div class="accordion-item" ng-class="{'is-active': active}">
<!-- {{ varialbe }} -->
<div ...
0
votes
1answer
18 views
How do I get ng-file-upload to work with Node?
I am using Angular with Node, Express, and Multer and ng-file-upload. For some reason I am getting 400 (bad request) http request error. I tried different things but this is all is coming back. Here ...
0
votes
0answers
15 views
Ng-repeat firing more than once with ng-show
I'm pretty new to Angular, and I am not sure if I am violating any best practices. I am building a calendar app that when you select a day, it shows availability times for each day:
<div ...
0
votes
1answer
14 views
How to pass an argument to a directive without over-writing parent scope
I need to create a directive that acts upon table cells where the table rows are rendered using ng-repeat -- to that end I have relied in part on this answer. Unlike that Q&A however, I need to ...
1
vote
2answers
15 views
chart js doesn't return tooltip
I'm working with chart js and coule days ago QA found out a small bag in my app, on which I'm stuck.
The problem is when data is empty or equal 0, tooltip of chart js shows nothing just an empty ...
0
votes
2answers
15 views
AngularJS angular-seed starter project adding directives
I am trying to use the angular-seed project (https://github.com/angular/angular-seed) to start a new project. I am trying to add in a new directive.
Created testDirective.js file :
'use strict';
...
0
votes
0answers
15 views
How to make Angular Gridster dynamically change column length on resizing window
I'm having this issue where when I resize the browser window, all the elements in the grid get cluttered on top of each other. I have added the link to how it looks before and after resizing window.
...
0
votes
2answers
30 views
html5Mode gives errors
I'm trying to remove the # in my URL to clean it. I did what everyone tells to do:
var routeApp = angular.module('demoApp', ['ngRoute',.........]);
routeApp.config(['$routeProvider', ...
0
votes
1answer
18 views
TypeScript reference other definitions within app - Duplicate Identifier error
Using Typescript with an Angular project. At the top of each angular controller I often will have to reference other services so I need their definitions as well. For example here is the top few ...
1
vote
4answers
28 views
Asp.Net MVC and AngularJS in same View
I´d like to know if exists a better way to render a view like this:
For the first load I need bring data from Controller like usual but after apply a filter in same page I need to start use AngularJS ...
0
votes
0answers
14 views
angular masonry with a custom directive for images the masonry bricks are not properly displayed
when I use a custom directive to load the images for responsiveness, the delay makes the images appear after the brick items has drown, which mean the containers of the images will have the wrong ...
1
vote
2answers
22 views
Regular expression for gherkin syntax cucumber
I want to write a regular expression for input box validation with respect to Gherkin syntax.The valid example inputs are like this
Ex:
Given I enter "www.google.com"
AND enter keyword "new york"
...