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 ...

learn more… | top users | synonyms (2) | angularjs jobs

0
votes
0answers
4 views

How can i make Bootstrap collapse work properly with nested AngularJS ng-repeat?

When i click any of the collapse toggle icons, it only works for the first li generated by the ng-repeat, how can i fix this so it only collapses it's parent li? <ul class="list-group"> &...
0
votes
1answer
6 views

AngularJS Validation: how do I trigger validation on button click?

I have a form that has a series of inputs along with the option of adding more inputs by clicking a button. Each input is required and has $.touched validators already on them, so if a user touches ...
0
votes
2answers
7 views

Create dropdown from one-to-many relationship with AngularJS and Web API

I have 2 tables in my database: People and Payband. I'll give a reduced version of the relationship below: dbo.People PersonId : int (PK) FirstName : string MiddleInitial: string LastName : string ...
0
votes
1answer
12 views

Angular/Ionic — Why is my function calling every time I type in an input?

I'm trying to teach myself how to build an Angular/Ionic app. I'm using Backand to store JSON, and I'm hoping to call a random JSON value each time the page reloads. Right now, the random call ...
1
vote
0answers
5 views

angular template cache doesn't work when template key contains file extension

Template cache fails for me for some reason, when I do this: angular.module('myApp').run([ '$templateCache', function ($templateCache) { $templateCache.put('test.html', 'content'); } ]...
0
votes
0answers
9 views

Minimalizing a menu with ng-repeat

I know the question title is a little vague but I don't know what else to call it. Basically, this is my problem: I have an angular menu with submenus. I have each menu item separate and the submenu ...
0
votes
0answers
21 views

Why does min-height not retain the value that's assigned by the directive?

I have an issue with an app I'm working on more specifically retaining the value of min-height after it is assigned from an angular directive. This is my directive: my html: <div class="teams" ...
-2
votes
2answers
16 views

How can i use JSON stringify in Angular?

i'm newbie to Angular. I'm trying to get Json data which written like that : id:1, name: "Friends", type: "Group", Now, i know i can't use this kind of data unless i add double quotes - like that (...
0
votes
0answers
3 views

Disable UIKit dropdown on mobile devices

I have a UIKit dropdown that is being launched using the uk-data-dropdown like this... <div class="uk-button-dropdown" data-uk-dropdown="{pos:'bottom-right', mode: 'click'}"> I also have a ...
0
votes
0answers
8 views

Angular ng-file-upload: Why is my form data is truncated?

I have a form that needs to POST input data along with files. I am currently using danialfarid/ng-file-upload to handle the uploads. I'm passing in all the form data and files using the data parameter,...
0
votes
0answers
6 views

Idangerous swiper custom Angular Directive

I have taken reference from this Stack Overflow question, everything works fine but in console after minification of my js files, am seeing this error, when ever the swipe is made on the carousel. ...
1
vote
1answer
21 views

Cannot read property 'value' of undefined Angular CLI

first of all, I'm learning Angular with Angular CLI, Foundation and Jquery, so I'm still novice at this theme, it works in part, i can obtain the information from my database, apply the filter to show ...
0
votes
1answer
7 views

Using Angular's $resource query with parameter

I want to fetch data in a controller that uses a factory: controller.js $scope.days = [function(start, end, timezone, callback) { calendarFactory.query({ userId: $scope.userId }...
0
votes
3answers
18 views

$http GET Receiving Empty Body

I have a GET method in angularjs that receives data from an API controller in C#. The controller is returning the data and the $http get method is receiving a response, but the response content body ...
0
votes
0answers
9 views

angular radio button group set model for each group

I have an UI, where I need to display a radio buttons(each radio button group) with only one tag which runs in ng-repeat. I need to display 3 radio groups and I want to set the model for each group. ...
0
votes
1answer
17 views

Use angularJS .component() but got no values

I am new to angularJS and trying to get the following simple samples to work. But when I ran it, I got a blank screen instead of "Hello world". Help will be greatly appreciated. Thanks. angular-...
0
votes
0answers
9 views

Angular ngStorage not working on mobile devices

Here's a controller for a web app I made with AngularJS. I'm using ngStorage to locally store some objects and with this controller I'm looping thru those stored objects and spitting out their names ...
0
votes
1answer
12 views

app.module.ts 404 (Not Found) in Angular 2 with systemjs

Here are my imports to index.html: <script src="https://unpkg.com/core-js/client/shim.min.js"></script> <script src="https://unpkg.com/[email protected]?main=browser"></script&...
0
votes
0answers
7 views

Onsignal filtered notification by location

I'm trying to send a notification using the location. Following the onesignal documentation I came up with this: var notificationObj = { contents: { en: "asdasdasd" }, include_player_ids:...
0
votes
1answer
9 views

Basic authentication using http$ in Angular - Passing Username/Password and grant_type

I am trying to use Angular to authenticate against an authorization endpoint that I know works using Postman. <script type="text/javascript"> var tokenGeneratorApp = angular.module('myApp', ...
0
votes
2answers
22 views

Can't access attr data in angular custom directive link function

I'm trying to access attr data defined by a controller in a custom directive's link function. Here is some simple angular markup: <div class='barChart'> {{vm.totals}} <bar-chart chart-...
0
votes
1answer
16 views

Acessing parent controller in child controllers

I am trying to create a base controller where I can use functions that all of the other controllers need together. I want to inherit or instantiate the JavaScript page on my lower controllers. I ...
0
votes
1answer
19 views

Export a html table to a pdf with all its css intact

I need to open a html table to a new tab as a pdf to be ready for printing. Problem I am having is exporting the html table due to the css tied to it. Many of the elements are colored differently ...
0
votes
0answers
11 views

Client-Only App with Angular & SQL Database

Is there a framework that has Angular and a SQL-Database (Client-Side) build in? Id like to build a client only App and can't find a convenient framework to start with. Grateful for any advice!
0
votes
0answers
13 views

How to filter a query and aggregate it in elasticsearch?

My JSON looks like this - "entities": [ { "count": 5, "entity_type": "Person", "text": "Obama" } , { "count": 1, "entity_type": "Facility", "text": "...
0
votes
0answers
7 views

Can I serialize/deserialize BSON from node to angular app?

Can I expect to be able to serialize an object on my node server, send it over to client angular app via. express response and then deserialize it in angular app? Here's what I have in node: var ...
0
votes
0answers
15 views

ng-options in a custom directive in Angular 1.x

I would like to add funcionability to the tag in Angular 1 to support dependent combo boxes. I mean, From <select ng-model="selectedCountry" ng-options="c.id as c.name for c in ...
1
vote
0answers
15 views

How To have Angular 2 CLI ng serve via subdirectory

I have set angular-cli.json line 9 "outDir": "dist/bice/" and the build is fine but I need the development environment to reflect the bice sub directory. E.g. http://localhost:4200/bice/ Stats: ...
0
votes
1answer
4 views

Need help to optimize the clickOutsideToClose of angular that is not working right

I have a problem with a md-dialog in my project. In all project dialogs, only one that has the functionality to close when clicked off, the rest is locked. I can do the lock by inserting the ...
1
vote
0answers
6 views

How to transfer a project to yeoman Angular 1?

I have an Angular 1 project that looks like below. I run this project by python -m SimpleHTTPServer 8000 and it works fine. However, I would like to transfer this code to a yeoman angular1 demo ...
0
votes
1answer
16 views

Angular unit test mockbackend SPEC HAS NO EXPECTATIONS

I am using Jasmine & Karma for unit testing angular app . I have wrote unit test like this it('should match request object', inject([UserService, MockBackend], (userService: UserService, ...
0
votes
1answer
16 views

How to add fading effect between two pages using Angularjs routing?

I want to add some animation to my angular webpage which uses routing. I am looking for fadein/fadeout effect just like when you click Next in this page: https://app.enhancv.com/ . So that when I ...
2
votes
5answers
49 views

How to extract and append objects from an array of objects in JS

The question is pretty straight forward. I feel dumb asking this because I'm sure the answer is right in front of me, but anyways here is the question. I'm given a response data and the JSON is sort ...
0
votes
0answers
12 views

AngularJS show Camel case codes from API to user

In a response from API call I have multiple Camel Case 'codes' I need to pritify for displaying purposes. What is the best way to do this? Having a filter with a switch statement (about 15 cases) or ...
-2
votes
3answers
31 views

Uncaught SyntaxError: Unexpected token U in JSON at position 0 at JSON.parse (<anonymous>) at Response.Body.json

I am working on an angular2 project. I am stuck with these errors. The error occured when I tried to send the JSON objects to the backend. It may be due the parsing of JSON objects. I am new to ...
0
votes
1answer
12 views

Angular ui-sref, can't format date input

Trying to append a GET URL with a date, but it needs to be in the format "yyyyMMdd00". Despite trying all the solutions here: AngularJS - convert dates in controller and Binding value to input ...
0
votes
0answers
7 views

Show preview of a file in a page with Angularjs

Hi I need when select a file show a preview of the file when I select a image or pdf document: angular.module('HelloWorldApp', []) .controller('HelloWorldController', function($scope, $http, $...
-1
votes
0answers
14 views

Isssuess with upload a file, angularjs and spring MVC

I'm programming a web application with angularjs 1 & spring MVC and i have to upload a file first on a remote server and then in my database. My code is this: VIEW: <form name="form" ...
0
votes
0answers
4 views

LoopBack Angular SDK's upsert includes ID in PATCH, causing an error

I'm using the generated Angular SDK from a LoopBack 3 API I have set up, but am running into an issue with the $save() method on the generated $resource. This method is mapped to the upsert action, ...
0
votes
1answer
8 views

Angular Uib Timepicker timezone issues in chrome

I'm using Uib Timepicker to edit/update data in UI. In backend my SQL database saves time in UTC. Issue-1) While using chrome Chrome Browser is converting backend UTC timezone to local(Browser) ...
0
votes
1answer
16 views

Can't inject service in component in Ionic 2

I have a simple ionic 2 app. Created at service import { Storage } from '@ionic/storage'; import { Injectable } from '@angular/core'; import { Http, Headers } from '@angular/http'; import { ...
0
votes
1answer
9 views

angularjs dynamic add option field with disable previous selected option

Hi I am adding Dynamically form fields like this <div ng-repeat="exam_student in exam_students"> <select ng-model="exam_student.student_id" options="students" ng-options="...
0
votes
1answer
10 views

Does react do a reverse pass over the tree when rendering?

Ignoring the reconciliation optimization heuristic, can anyone definitively answer whether React does a reverse tree traversal, or only the primary Render traversal which starts at the root node and ...
-1
votes
0answers
11 views

Table reload on button.

I am very new to angular2. I have apply button and a table. Is it possible to reload the table whenever the button is clicked. Something like onLoad event.
1
vote
2answers
28 views

Angular 2 - how to use function from another component?

Imagine that we have 3 components and one of them has some function which I want to use in other components. All these components are on the same level (siblings). file1.ts export class ...
1
vote
1answer
7 views

Ionic 2 login with facebook in ios getting error

I am working with the iconic development and in my app, requirement is to make login with facebook but i Can't Load URL The domain of this URL isn't included in the app's domains. To be able to load ...
-1
votes
1answer
11 views

How to quickly Import JS, Angular, HTML etc.. files and avoid dependency issues?

I’m having trouble finding a quick solution to add JS (Vanilla / jQuery / Angular) / HTML… I’d love any guidance to help find the best solution. Goals are… Add modular content quickly Manageable ...
-1
votes
2answers
42 views

JQuery hide function works for th but not td

I'm using the following code: This is html table: <table id="preTbl"> <tr> <th>Type</th> <th>Origin</th> <th>Count</...
0
votes
0answers
13 views

Using public data in Chartjs

I'm working on the chart.js and angular. Im trying to replicate a chart found in GOOGLE PUBLIC DATA. Here Im using the http request from the js file to fetch the data and pass data to the html page. ...
0
votes
0answers
16 views

Access method from sibling directive

I am trying to access a method that is fired in a sibling directive. How can I access a method fired in directiveTest2 from directiveTest2? I know how to access the parent directive but I don't know ...