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 applications are also frequently known as single-page ...
0
votes
0answers
5 views
AngularJS: How to get subcategories based on category selection
My question
Please how to get subcategories of specific category selected ?
Here I can retrieve all data but not filtered by categories.
Thanks
Json Data
"data": [
{
"id": 1,
"famille": "...
0
votes
0answers
13 views
accessing attribute directive values using controller as
I know how to do it Without controller as:
//html..lets assume i have a directive named ngUpperCase(either true or false)
<div ng-controller="myControl" >
<input type="text" ng-upper-case="...
0
votes
0answers
4 views
Phone gap & Sqlite - Sync or Local?
Thanks first for reading. Your help here will be great.
We are building a phone gap application, for all platforms, iOS, android and windows store.
Background:
Our application will be using ...
0
votes
0answers
7 views
How to trigger full screen modal from link within Angular ng-repeat
I'm using ng-repeat to loop through a JSON object of movies and their details. I need to be able to trigger a modal on click from each one, showing the associated details of each movie in a full ...
0
votes
0answers
7 views
Export html in pdf,doc,csv,xml and txt using angularjs
I have multiple html tables and div(html tag) in single page.I want to export this html tables and div using angularjs.and also remove some column(eg.in a table last column add delete,edit and details)...
0
votes
2answers
24 views
Getting text from html scope
.controller('LoginCtrl', function($scope, $rootScope, $http, $state) {
window.localStorage.removeItem("loggedIn");
if(window.localStorage.getItem("loggedIn") == undefined) {
$scope.doLogin = ...
0
votes
1answer
25 views
AngularJS $http won't fire second .then function
I have this piece of code where the response status code is 403. The problem is it will never fire the second function, it simply does nothing.
I've seen similar errors but people were using ...
0
votes
0answers
6 views
How to change ng-drag-data image in draggable element (ngDraggable module)
The project I'm working on is using the ngdraggable module for AngularJS. It's being used to move images around a grid. This works fine, but we have a use case where the image needs to be changed to a ...
0
votes
0answers
4 views
AngularJS working with Tomcat as intermediary with a server
I am new to AngularJS and I have to perfomr a lot of SOAP calls to a server. The problem is that every time I perform a call, i get CORS error "No Access-Control--Allow-Origin header present", I have ...
0
votes
0answers
5 views
Client only pagination for tree-grid-directive
I am using following ‘tree-grid-directive’.
https://github.com/khan4019/tree-grid-directive
Is there any way to do client only pagination, if not than is it possible to do client/server pagination?
-7
votes
0answers
37 views
Guide me to choose the best one [on hold]
I am a front end developer. I have got 2 offers with mid level companies with similar CTC. However one is product based and other is service based. Please help me choose one.
Product based company
...
0
votes
1answer
13 views
Using variables from two views inside an Angular module
I have a variable, which I got from a querystring in docA:
docA(mainView)
var cat = getUrlParameter('cat');
I also have an ng-click function in docB that handles different views:
docB(rightDrawer)...
0
votes
0answers
3 views
Strange Behaviour of Angular-Nvd3-Chart after changing Data
i am using Angular-Nvd3 to create a MultiChart:
$scope.optionsD3 = {
chart: {
type: 'multiChart',
height: 450,
margin: {
top: 30,
...
-4
votes
0answers
14 views
Fast loading frontend framework for SPA
What framework / approach to use to benefit from both in the same time:
speed of cold load like static html page
responsive of Single Page Application
I need to decide how to build frontend for my ...
1
vote
2answers
21 views
Angular app is not defined when adding a custom filter outside of function
Trying to follow some examples, but I get app is not defined
app.js
(function () {
"use strict";
var app = angular.module("deviceManagement",['angularUtils.directives.dirPagination']);
}());
...
0
votes
0answers
6 views
angular-ui-mask doesn't mask as expected in the text box
I am using angular for my web-application and trying to use angular-ui-mask (https://github.com/angular-ui/ui-mask) to mask the input to prevent someone from even typing anything but numbers in the ...
0
votes
1answer
9 views
Angular app not working on firefox
I'm developing an app that works with angular 1.5.8, this app runs like charm on chrome but in Firefox the app doesn't respond as well.
I'm looking for any hints of why this behavior is happening. In ...
0
votes
3answers
10 views
Use regex to bold the word in search result which match the search query
I have stored input text value into a variable with id name=search-query.
And then I am searching through the JSON data to find any matching result and then output the result on the screen.
Is there a ...
0
votes
0answers
5 views
OverrideComponent with TestBed (Angular RC-5)
I have MainComponent, uses ChildComponentA as @ViewChild. Main Component is calling the ChildComponentA's Method.
I want to write an unit test case mocking the ChildComponentA. How can i mock ...
-2
votes
0answers
10 views
AngularJS and CMS
If I built a web app using AngularJS and also want to use Django as a CMS, how do the 2 integrate?
For example if I built a site search app using AngularJS how would I integrate the AngularJS ...
1
vote
1answer
15 views
How to cancel angular $http request 1.5
I have tried a couple things but can't seem to cancel the http request when the function is called before the previous request is finished. I'm using 1.5.7 and every time $scope.glsuggested is ...
0
votes
0answers
8 views
Create tree list in angular dynamically?
I want to create a tree list in angular dynamically. I'm using the ion-tree-list plugin (https://github.com/fer/ion-tree-list) to that. I have already created some logic to create the list given the ...
0
votes
0answers
5 views
How to specify locale different from default for currency with Angular currency filter?
In our app we are using angular for i18n/l10n. It's working fine.
There's a problem though - sometimes the user needs to see info aligned with a locale, different from the current one. More specific ...
0
votes
0answers
4 views
How to retrieve the list of cached templates in Angular? (from the $templateCache)
Trying to retrieve the list of cached templates.
Tried both
$templateCache.info()
as well as
$cacheFactory.info()
I see the count, but I can't find the list.
Thanks!
0
votes
0answers
9 views
How do i delete something with $resource from the server without using $stateParam in AngularJS
This is a noob question.
I have the following routes defined on my nodeJS server api:
// Appointments Routes
app.route('/appointments')
.get(appointments.list)
.post( appointments.create)
...
0
votes
0answers
4 views
angular ui-router html5mode fails to load resources
I have configured my ui-router and set the html5mode(true). I wrote a rewrite rule to redirect me to my app if it doesn't find any file. I added the base path in my application's main page but i still ...
0
votes
0answers
5 views
AngularJS - series of user prompts that store value in an object
I have an angular app with an interface that resembles a "command line", where the user can type in commands to navigate the site. When the user types "sign-up", I would like to ask the user a series ...
1
vote
2answers
21 views
Choose angularjs filter dynamically based on condition in ng-repeat
I am looping through list of items using ng-repeat. There are some values which i want to display as simple numbers like "435" or "43", some i want to display as double like with 2 decimal places "545,...
0
votes
5answers
29 views
Remove item from json file using angularjs
I lost a lot of time trying to delete a item from Json file
This is my json file
{
"count": 3,
"data": [
{
"id": "1",
"raison": "ABS",
"email": "[email protected]",
"tel":...
0
votes
0answers
6 views
angular ui router - handling response errors
I've added an $http.interceptor to catch response errors and handle them accordingly. However, I've noticed that this approach doesn't work when changing a state param in the url and then hitting ...
1
vote
2answers
17 views
Grabbing key:values from JSON object in Angular
I am trying to loop through the returned JSON and display images based on the results. I am able to pull the feed, but not sure where I'm going wrong on grabbing the poster_path from the results and ...
0
votes
0answers
8 views
IE11 Paints Much Less Frequently than Firefox or Chrome - How to Get IE to paint more frequently?
I am using AngularJS 1.5 and aim to create some draggable divs and images.
I have a bunch of absolutely positioned divs and images that have ng-style. There is a directive that listens to a mousedown ...
0
votes
1answer
9 views
Angular UI-Bootstap tabs: not set active tab
I have this plunkr that have a system to add tabs dynamically.
When I add a new tab, it is setted as active tab. The problem becomes when I add two tabs, clicks on a first tab and add a new tab. With ...
0
votes
3answers
39 views
I get raw HTML instead of data from API in Angular
I started to build a hangman game. I found a great Wordnik API that should allow me to get random words. Here's my code on Codepen. I do not understand why I keep getting raw HTML instead of a word. I ...
0
votes
0answers
8 views
Stop angular-material from injecting styles into the head tag
Is there a way to prevent angular-material from injecting theme css into the head tag? I am not sure how to stop this from happening.
0
votes
1answer
10 views
AngularJS Cross Origin Request using http GET Blocked
I need to access http://www.wienerlinien.at/ogd_routing/XML_TRIP_REQUEST2?locationServerActive=1&type_origin=any&name_origin=60201095&type_destination=any&name_destination=60200769
(...
0
votes
0answers
6 views
Spy on angular notify for unit test
I have a controller that uses a notify plugin (https://github.com/cgross/angular-notify/) and I'm trying to unit test that notify({ message: 'an alert'}) was called after doing an ng-click.
Example
...
0
votes
2answers
23 views
Two way data binding with dynamic table and angularjs?
I am creating a table where I will have dynamic row creation. Everytime user clicks a button, a new row is created, as follows:
The second column will contain the amount of products. So, I'd like ...
0
votes
0answers
8 views
Extra character 'j:' in cookie set via ExpressJS? [duplicate]
I'm setting a cookie in ExpressJS like so:
var content = {id: 'FAC0004',name: 'New York, USA',result: true};
res.cookie('COOK', content);
I am able to correctly read the values using req.cookies....
0
votes
0answers
16 views
HTML view not updating windows 10 edge and internet explorer
I tried loading list of courses from mongodb to my SPA using node API and angular js it works perfectly on firefox and chrome but on edge and internet explorer i have to restart the browser before it ...
0
votes
0answers
6 views
Prevent search changes from spamming history
I'm using links like "#/OrderList?id=123", which shows the list of all orders and more details of the order 123. With reloadOnSearch=false and watching $routeUpdate it works fine, except for one thing:...
1
vote
0answers
6 views
Recommended way to unit test an AngularJS factory utilising private variables
This basic AngularJS factory has get / set methods that interact with a private globals object. I'm looking for advice on how best to unit test this.
Changing globals to a public property feels like ...
2
votes
3answers
26 views
Use directive with different controllers in AngularJS?
I have created a directive for a search box which i want to use with different views. Here is the directive -
angular.module('jobSeekerApp')
.directive('searchBoxDirective', function () {
...
0
votes
1answer
7 views
background dont work in chart.js
I would like to ask for help with the following, the code works fine, but what does not work is the background of the bars of the graphics, that would be basically thanks
$scope.labels = ['JAN', 'FEB'...
0
votes
1answer
11 views
angular-moment not showing anything
I have in my controller a variable with the current date formatted as yyyy.MM.dd HH:mm:ss
It is being formatted correctly since I'm printing it, and it look fine:
2016.09.01 16:13:15
in my view, I ...
0
votes
1answer
32 views
Handling asynchronous calls inside loops
I am working on a angular app, I have a form which takes few rules which are stored under a list called ruleList and then to the backend. In order to show these rules in a page, I am preparing the ...
0
votes
1answer
7 views
How does one do user authentication in Safari if it defaults to block cookies? (devise, angular-devise)
I realize this is probably a stupid question but I have put in about 16 hours of googling and haven't even come close to figuring this out.
I have AngularJS running on top of Rails (4.2), consuming ...
0
votes
1answer
6 views
How do I extend a parent state's data in angular ui router?
I know that I can inherit a parent's data as-is, or overwrite it, but how might I extend it? For example:
$stateProvider.state('parent', {
url: "/parent",
template: "<div ui-view></...
0
votes
1answer
15 views
how to unit test a function inside Angular 1.5 component
I have created navigation with Angular 1.5 component. But facing difficulties with testing. I am new to Angular and unit testing both.
Please find code on this PLUNKER
This is my component.
...
0
votes
2answers
15 views
ngRepeat across pairs to build table with rowspan=“2”
I have an array of pairs that I need to display in a table where the 1st column spans 2 rows like in the image.
The array looks like this:
$scope.products = [{
p0: {name: "n1", img: "a", brand: "...