Tagged Questions
AngularJS (a.k.a. AngularJS 1) 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 ...
0
votes
0answers
6 views
Angular third party library wrapper - Dependency Injection
I want to abstract a Tree component in my project, concretely JSTree. So i wrote a Interface and a Adapter for JSTree that implements that interface. I'm using Dependency Injection because of unit ...
0
votes
0answers
4 views
Call function when use clicks on a hyperlink to a server directory in browser that doesn't support opening local resources
I am not sure where to start with this one.
I have a web app running AngularJS.
On one page, we allow the user to enter a link to a path or website in which the path most of the time will be a share ...
0
votes
0answers
13 views
Why does this Angular filter get applied to LIKE ids?
I have a series of 3 selects that remove options that are selected in the other fields.
Plunker
<label>Choice 1</label>
<select ng-model="food.fruitOne"
ng-options="fruit.id ...
0
votes
0answers
4 views
unable to setPristine form as want to push my questions in an array
i am trying to make a quiz application.... but i want questions form users, that's why i decide to make a form with lots of conditions like (ng-if,ng-show, ng-hide), but i am stuck at last point of ...
0
votes
3answers
20 views
How to make angular JS function to execute as soon as the page is loaded
I have a angular controller which has bunch of functions which share the data between them. The problem is, The data which I return from function 1 is used in function 2 and then data returned in ...
1
vote
1answer
8 views
Populate a select with ajax with ng-options using AngularJs
With angularJS, I need populate a select with data coming from a ajax call.
I have a controlller called "TabPacProfissionalController".In this controller I do a ajax call to get json data('...
0
votes
0answers
6 views
Using Restangular to do a GET on multipule parameters
Trying to do a Restangular call to GET on this path...
v1/app?appNo=123&confNo=11
and using this to try it...but the confNo is not being called...not really sure how to do this with Restangular.
...
0
votes
1answer
9 views
Testing modalInstance.result.then
I am finally working on learning how to test using an older angularjs app I wrote. I have a few modals in my controller and I cannot figure out for the life of me how to make sure the code in '...
0
votes
0answers
26 views
Angular check if object has been updated by the user
I am working on a form where the questions come from a HTTP request to a JSON file.
In the view I am doing an ng-repeat on the questions, but now need to only show one initially and then show the ...
0
votes
0answers
14 views
Insert name of clicked button into database
I am trying to insert name/id of clicked button into database.
<button id="test" class="button button-light" data-ng-click="showAlert($event)">Click Me</button>
I am getting id ( test ) ...
0
votes
1answer
9 views
Angular 2 Pass parameter variable to a validator function
I have a custom validator that needs to have access to a local components' variable. In my component I have a variable boolean that gets changed as user interacts with a form
export class MyForm ...
0
votes
0answers
6 views
Angularjs $resource caching never used synchronously
var resource = $resource(url, {param1: '@param1'},{
query: {
method: 'GET',
cache: true
}
});
var data = resource.query({param1: param1});
console.log(data);
data always starts out as ...
0
votes
1answer
45 views
Can anybody figure out why this isn't working properly?
I have this mini app that allows the user to enter the make and model of a car, then adds it to the table below. I have added a function that will check for duplicates and alert if there are any ...
0
votes
1answer
15 views
angularjs filter multidimensional object json
I wnt to use ng-repeat to display a list filtered by an object value. Here is a plukr of my attempt https://plnkr.co/edit/vD4UfzM4Qg7c0WGTeY18?p=preview
The following returns all of my JSON names as ...
0
votes
0answers
15 views
Errors while using Webpack
I am trying to learn webpack by following the tutorial here: https://angular.io/docs/ts/latest/guide/webpack.html.
My node packages versions are as below:
I am getting 70 errors as below when I run ...
0
votes
0answers
12 views
jsPDF - Exactly capture a html page to PDF
I need a table to be printed as a pdf and not to dismiss the css tied to the table. I am also using angularjs. I am looking at different ways and I am experimenting with jsPDF.
On the main page (...
-1
votes
2answers
30 views
Angular2 - serious issues with checkboxes
First of all I'm just really disappointed how undocumented is the whole checkbox section. This is causing me some serious issues. I'd like to provide an array of strings that user can click and the ...
0
votes
0answers
26 views
What is a correct way to develop front end application using angularJS? [on hold]
I am a new to front end application development. Currently, I have been developing a front-end application using angularJS since the last couple of weeks.
So my question is that which pattern should I ...
0
votes
0answers
9 views
Chrome data compression angular auth issue
My app had a very strange
behaviour about the jwt authentication.
All worked well except in some pc,
when the session has finished the user wasn't
able to login again because of the old token.
After ...
0
votes
2answers
30 views
ng-repeat not workiing on third loop
ng-repeat not working on third loop(third level)
<div ng-repeat="child in jdata.children">
<div ng-repeat="childsub in child.children">
<div ng-repeat="text in ...
0
votes
2answers
15 views
Angular.JS loop keeps running while a service call inside the loop is waiting for promise
"AddDistance" is an insert to DB function,
the problem is that hash[k][2] value jumps forward with the loop while "distance"(the service promise) is still waiting, and as result i insert wrong row to ...
0
votes
0answers
13 views
How to format an input date for angularjs filter?
I'm using a filter object in an angular form to dynamically filter the rows in a table. Each value of the filter object is bound to an input field and this all works wonderfully.
Except for the date ...
1
vote
0answers
14 views
Angular flex-layout with ngFor
I am very new to flex-layout and having trouble fixing the following:
My ngFor:
<div fxLayout.xs="column">
<country fxFlex *ngFor="let country of countries" [country]="country"></...
0
votes
0answers
9 views
Find Angular 1 template binding errors
How to write to console "binding errors"/"misspelled expressions" in anguar 1
or even better get compile error using gulp or some other tool.
My target is to find error in template es:
ng-model="...
1
vote
1answer
27 views
CSS Bootstrap fixed header
Is it possible in bootstrap to create a table as:
Fixed headers and scroll-able content like here
The columns need to size proportionaly to the content of the columns (wider/smaller column depanding ...
0
votes
1answer
11 views
angularjs radiobutton groups having its own model
I want to create a a 3 radio button groups each having its own unique model using one ng-repeat. How can I achieve this?
<div class="radio" ...
0
votes
1answer
14 views
AngularJS routes and search query
I'm building a small search engine using Angular and UI Router. I'm trying to figure the best way to transition from the home page (search submission) to the results page.
I have this for my home ...
0
votes
2answers
27 views
Replace attribute using angular
I am new to angular.
My question is,
Is it possible to replace 'ng-hide' with 'ng-show' if 'ng-if' is satisfied?
I want to hide and show certain div based on the data I receive. Its either 'true' or ...
0
votes
0answers
25 views
AngularJS and control identification
I'm new to angular and can't seem to break through the ice on how to see the difference between which objects are being changed. This snippit of code show 3 knob-controllers dynamically being created ...
1
vote
2answers
26 views
Is there a way where I can pass ng-repeat value to another div
I am working with angularJS ng-repeat. So, I want to use my ng-repeat value in another div. I am doing the following. But it doesn't loop through and give me the exact value.
Code in ng-repeat
<...
0
votes
0answers
10 views
Angularjs bind input text value for each record depending upon label
I have 5 textboxes with different labels for each.
My array will have many objects so depending upon the key label for each
object want to display that record value for the particular type of ...
0
votes
0answers
36 views
Angular function on controller not returning correct value
I have this function to set if some fields in the view are enabled. When the flow goes through the "else" clause I'm getting an error. I guess is related with having the "return" sentence inside the "...
0
votes
0answers
17 views
How to structure my Spring project with Angular frontend?
I have been looking for a sample structure of a project when you have, for instance, Java/Spring backend and a front end like Angular2.
My first thought was that they will go in two separate top-...
0
votes
0answers
10 views
Elasticsearch more like this query submission
I built a small search engine using ES and AngularJS and I'm trying to implement a "related searches" feature (similar to Google and Bing) and trying to figure out the best way to do that with ES.
I'...
0
votes
0answers
15 views
Using ajax to load a Django template containing Angularjs directives
I'm attempting to use Angularjs's $http method to fetch given Django templates depending on the users selection, each of which includes Angular directives (ng-if) to further filter the content.
But ...
0
votes
1answer
20 views
angular-ui modal is not initially hidden
I'm following this angular recipes page for adding a modal dialog to my ui. It suggests the following markup, which I've added to one of my views.
... html for my view is here ...
<button class="...
-7
votes
0answers
28 views
How can I find M.E.A.N stack projects? [on hold]
I learned mongo express angular js and node,i wanna improve myself,to do that i searched google to find some projects but i couldnt find something usefull.
YELP!
1
vote
5answers
92 views
How to check if value exists in an object in JavaScript
I have a function in my angular factory service to fetch some data. How do I check that a certain value exists inside the object before using it?
here is what I've been trying...
categories.fetch = ...
0
votes
1answer
29 views
Wait for data before rendering views in Angular 2
It's not another question about resolve I think. I would like to have simple, complex method to wait for Ajax data before rendering component in Angular 2. I will have about fifty routes, so creating ...
0
votes
1answer
15 views
AngularJS ng-reapeat does not render in browser
My browser only renders : "{{ cust.name + ',' + cust.city }}"
index.html
<!DOCTYPE html>
<html data-ng-app="demoApp">
<head>
<meta charset="utf-8">
...
0
votes
4answers
35 views
ng-show set as false doesn't hide element at page load
I have this piece of code, using Angular 1.3 and I want the div with the ng-show directive to NOT show when I load the page in the first place:
<div class="stuff">
<uib-...
0
votes
2answers
32 views
orderBy not filtering numbers correctly
I have an ng-repeat directive.
<tr data-ng-repeat="list in vm.customer.lists | orderBy: list.id track by $index">
<td>[[list.name]]</td>
<td>[[list.locations.length]] ...
0
votes
0answers
11 views
Using ng-include directive to bind image gallery
I am new in angular JS and highly appreciate if somebody helps me with the problem.I am trying to bind my gallery.html file to index.html row class div using ng-include directive.The problem is though ...
2
votes
1answer
40 views
Redirect to a new page with AngularJS
I'm trying to develop a web page with MEAN with login system. I'm developing the front-end first. The server is starting and the index.html is loading correctly, but I'm having problem to redirect to ...
1
vote
2answers
35 views
Single array JSON object will not print (Ionic 2)
I am pulling data from an API for recipes, I already have a list of recipes which works fine, however I am now calling for a single recipes details (1 object). My console log below is what the JSON ...
-1
votes
1answer
31 views
How to connect to SQL server through Javascript application [on hold]
I understand that its a bad idea to connect to an SQL server/database directly through the JavaScript interface since it compromises the security of the database. But what steps do I need to take in ...
0
votes
1answer
12 views
Add header for different blocks Angular 1
I have recently started learning Angular 1, I have gotten ng-repeat to work with the elements I need. However, I want to add a title to each block and I'm finding this difficult.
<div ng-app="...
0
votes
0answers
5 views
Element Creation in angular Material
I want to create an application in material angularJS. All the help on internet provides the html code for UI creation. I want to know if there is any method to create material angular ui elements in ...
0
votes
1answer
20 views
Angularjs Unknown service provider
I have a service created this way:
(function () {
'use strict';
module.exports = siteAuthService;
angular
.module('authSite', [])
.factory('siteAuthService', ['$q', '$http', 'Requester', '...
0
votes
0answers
15 views
Protractor: How to assing a localized value to an input field defined with uib-typeahead?
I have the following input field defined in a template:
<input id="addTodo_Todo_access" type="text" name="todo_access"
uib-typeahead=" level as level | translate for level in vm....