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)

0
votes
0answers
3 views

How to display error message when download a pdf file from server using Angularjs

My AngularJS application downloads a file by assigning a new URL. It works nicely. But now I need to add a validation before stream down the report. When I return an JSON error, it is displayed on a ...
0
votes
0answers
4 views

Angular 2 update multiple variables via post request

So I have three methods in one component which all make different HTTP post request calls but in a very similar fashion. But first, I have three class variables within my component which store the ...
0
votes
0answers
6 views

angular-google-signin Module throwing 404

I'm trying to implement google signin for an Angular2 app. I run the following command. npm i angular-google-signin I got angular-google-signin folder in node_modules. In index.html added the ...
0
votes
0answers
12 views

How to add string placeholder instead of int uimask

<div layout="column"> <md-input-container class="md-block" flex-gt-sm> <label translate>Company Phone</label> ...
0
votes
2answers
11 views

Ternary condition in ng-click angular js

In HTML I have a button and I am using ng-click event on it, like this: ng-click="!user.name : openModel('lg') ? ''" I am saying if user.name is not defined then call the function called openModel() ...
1
vote
2answers
16 views

How to disable/enable sorting while editing in Angularjs

I have a editTable like this: <tr ng-repeat='guest in guestList | orderBy:orderByField:reverseSort'> <td><span ng-show='!guest.isedit'>{{guest.firstname}}</span><span ng-...
0
votes
2answers
24 views

How to call a file in controller

I have a file in which ii declared my videouploadfolder url and i want to call that file in my js my config.js var filepath = { uploadVideoUrl : './public/videos' } I called it in my node.js ...
-3
votes
0answers
11 views

How can i send index value in function - Angularjs

How get index of one of two div tag without i don't using ng-repeat? I tried this but it didn't work; <div ng-click="formselect($index)"></div> <div ng-click="formselect($index)">&...
1
vote
2answers
36 views

$scope not working on console

AngularJS Developer Guides on scope says that we can examine the scope by typing $scope on console. To examine the scope in the debugger: 1.Right click on the element of interest in your ...
2
votes
2answers
15 views

ngOptions - filter is not working when track by is used in expression

Please see this plunker : https://plnkr.co/edit/U2oDUPl8w7lSlY8MkVLb?p=preview Why filter is not working with ng-options having track by in expression and working when using select as? <span> ...
0
votes
0answers
13 views

Hashbang defaulting in angular application

Do the newest versions of angular/angular-route 1.6.1 use hashbang by default? Take this piece of code for example, I have to use #! when linking to partials because #/ or #/partial2 does not work. I ...
0
votes
0answers
14 views

How can Actionhero receive the parameter without inputs defined?

I'm using ActionHero in node.js and Angular.js. I am trying images send to ActionHero using $http method. but I don't know How many images are made. so I can't define the parameter names on action in ...
0
votes
2answers
18 views

routerLink from Object in Angualr2

I'm trying to build a "Team Member" page from JSON data. I can create the page with basic things like firstName, lastName, position. Each team member has their own page with a little more ...
-1
votes
0answers
13 views

Want to know all the priorities of js and angularjs functions

onmousedown event is called before the onblur event in js and onclick event called after onblur event and similarly for ng-mousedown, ng-blur, ng-click I know that onmousedown>onblur>onclick Also don'...
0
votes
1answer
11 views

delegate or make ajax call a component in react

As you can see in the code below my ajax (i'm using fetch) is located within a handleSearch function, in App component. How can I delegate and make the ajax call in its own component? I come from ...
-1
votes
2answers
28 views

Hello World AngularJS directive broken

This code is just supposed to print "Hello world" using an AngularJS directive, but instead of that, the page is blank when I load it in my browser. Here is the HTML: <!DOCTYPE html> <html&...
0
votes
1answer
13 views

CORS error while API calling from Angular Js (Java web)

I am getting an error while call the API from Angular Js, XMLHttpRequest cannot load http://10.10.14.54:8080/FcmBackend_ws/rest/devices. No 'Access-Control-Allow-Origin' header is present on the ...
0
votes
1answer
25 views

Angular controller issue

I am triyng to reach a simple app that return result from a MongoDB I am getting this error in the console; Uncaught TypeError: Cannot read property 'controller' of undefined at model.js:8 'use ...
0
votes
0answers
10 views

Adapt-Strap and Column Text Alignment

using Adapt-Strap ad-table-lite in AngularJS. I need to have some numbered columns aligned to the right - Everything defaults to left alignment. If I can't align the columns, adapt-strap is useless to ...
0
votes
2answers
28 views

AngularJS select an empty option when loaded

I'm new to angularjs and I really need help with this issue. csApp.controller('expensesCtrl', function ($scope, $http) { $scope.getExpenses = function () { ...
0
votes
1answer
17 views

Basic AngularJS service request

I am trying to make changes to a very basic sample app so to decouple the static portion of the application from the server side based on Springboot. I want to run the AngularJS static portion of the ...
0
votes
1answer
35 views

How do I make AngularJS update input values?

Trying to figure out why my last input won't update. Here's my JSFiddle https://jsfiddle.net/Lzcvukq8/ I think there's something wrong with my JS: function calculatorController($scope){ // ...
0
votes
1answer
16 views

Undefined value in angular 2

Here is the method which map the value with the web service value. I am able to map the value from the service api. But I want to access some value to perform operation. However I am getting an ...
0
votes
0answers
7 views

How to deploy AngularJS project with Cyberduck?

I have a server set up and have just made an AngularJS project - how would I deploy that on Cyberduck? My previous experience with it only extends to dragging/dropping one HTML file and one CSS file ...
0
votes
1answer
25 views

Resolving a promise in Angular Service

We have a service, lets call it AccountService which exposes a method called getAccounts(customerId) among others. In its implementation all it does is to fire up a $http GET request and return a ...
-1
votes
1answer
9 views

session lose using cross domain in agular js and codeingiter

I have two domains: http://localhost:9000 / My AngularJS App created with Yeoman http://localhost/ My PHP app created with CodeIgniter My Angular app do $http.post to autenticate in the PHP app and ...
0
votes
1answer
17 views

call multiple functions by order use ng-click, single click and pass the same variable to multiple functions angularjs

ng-click cannot call googlesearch function and keywordsearch fuction. How to call two functions ng-click??? i would like to know how to create the single click, but run two functions by order. for ...
0
votes
0answers
12 views

Angular/Jasmine test of directives making calls throws an error

In this plunk I have a directive dir1, that declares in its template two directives dir2 and dir3. In the Jasmine test, I provide the code of dir2 but a mock of dir3. Both dir2 and dir3 define a ...
0
votes
0answers
8 views

How to switch between components that uses ng-transclude?

Switching Between Components We have two components, <hello></hello> and <goodbye></goodbye>. Both components have transclusion, allowing them to be used in manners such as &...
0
votes
1answer
18 views

youtube video is not playing from from html5 using ng-src directive

I am creating an online course application and storing the video on YouTube. When a user clicks on courses then They should see the embedded YouTube videos. However It just creates the video frame and ...
0
votes
0answers
16 views

Parent directive template not being replaced when child directive is nested using Angular transclusion

I have created two custom angular components using Angular 1.5 that both use transclusion, when compiled they should essentially look like a bootstrap dropdown button: http://v4-alpha.getbootstrap....
0
votes
0answers
12 views

Ember How to Run Angular Directive and How to Import Angular

I am trying to use the angular-filemanager addon on Ember and have not been successful at all. I found this other question on stackoverflow which says how to run an angular directive inside Ember, but ...
0
votes
1answer
22 views

WebAPI creating duplicates of children when doing POST

I'm encountering some problems when trying to use a POST with my web api. When I'm creating a new Parent and want to attach an already existing Child I end up with the Parent and a newly created ...
0
votes
2answers
27 views

Multiple views with angular

So I am trying to display multiple views in angular to help fix the footer problem I am having with this site I am building. I want to make sure that what I have been reading about and trying to mimic ...
0
votes
0answers
17 views

How do I “recompile” html that was pushed using mustachejs in Angular?

I have some html code that gets rendered through Mustache JS. This html code uses angular directive (ng-click) but since the html is injected on an event, angular is not aware of the ng-click and ...
0
votes
0answers
16 views

Angular bootstrap URL after Gulp process points to nowhere

I have a website that has been created in Angular and in that we are using popovers from UI Bootstrap (couldn't find a direct link to the specific section). Anyway the crux of it is that in the html ...
0
votes
0answers
10 views

Disable caching of HTML template files on apache2 web server

I'm trying to disable caching of HTML templates in my angular app. It seems the easiest way to achieve this is disabling via Apache. I placed this .htaccess file in my web root: <FilesMatch "...
0
votes
1answer
12 views

Change td style based on value in angular

I have a column where the style of each td needs to be changed based on value. There are five status's, so there has to be five different border-colors and font-colors. How do I do this in angular ...
0
votes
1answer
33 views

AngularJS Custom Service is not working

This is a simple service I created: var app = angular.module('myApp', ['ngRoute']); app.service('UserService', function() { this.user = {firstName:"",middleName:"",lastName:"",email:"",dob:""}; this....
0
votes
1answer
15 views

Add id to ng-template with Angular Bootstrap accordion

I'm having trouble adding dynamic id to the heading template. I tried including an id="{{group.title}}" but it doesn't work. Any help or suggestion would be great! <div ng-controller="...
0
votes
1answer
15 views

best practice for returning data from a function which has a Callback

I have got a service which is calling a method with callback import {someDataBaseFunction} from 'something/somthing'; class MyService{ myServiceFunction(param1, param2){ ...
0
votes
1answer
16 views

How to toggle data in one directive using an ngClick function in another?

I'm building a weather app using Angular 1.5.8 and need to give users the ability to toggle back and forth between imperial and metric measurements for the temperature and wind speed. The toggle ...
0
votes
1answer
18 views

Angular populate input fields

I have a object that gets populated via a restful API in my root scope and then in my child scope I'm trying to populate some input fields. child controller $scope.profileForm = $scope.$parent....
2
votes
2answers
17 views

How to bind ng-click to a event handler defined inside directive?

All: I define a directive like: .directive("hellobutton", function(){ return { restrict: "AE", scope: {}, controller: function($scope){ $scope.sayhello = ...
0
votes
0answers
9 views

Trouble Using GoJS initialAutoscale Diagram Property - How Does it Work?

I am having trouble getting my GoJS Diagram to scale properly initially by setting the initialAutoScale property on the Diagram object as so: myDiagram.initialAutoScale = go.Diagram.Uniform; however,...
0
votes
0answers
11 views

Tagging a filter on column B when column A has filter tagged

In ag-grid, I have several columns. The first two columns are "Name", and "ID". "ID" is numerical representation of "Name". For example: USA 1 Canada 2 Englad 3 ... I want to be able to check out ...
-1
votes
0answers
13 views

Unit testing Angular 2 Service

Im new to whole unit testing scene with Angular, so would be great if guys could point me in the direction.. Im trying to create a fake service and pass back data to which i can run a few simple test.....
0
votes
1answer
9 views

Angular ui-bootstrap with ng-repeat: if there's no tabs, new tab isn't selected

Here's the link to demonstrate my problem: http://codepen.io/pietrofxq/pen/ZLLJdr?editors=1010 Click in "remove tabs" and then in "add tab" The issue: I do a loop with ng-repeat to display tabs. But ...
0
votes
0answers
5 views

error TS2305: Module 'ng' has no exported member 'IScope'

I'm upgrading an angular typescript project from angular 1.2 to angular 1.6 and from typescript 1.8 to typescript 2.1. I've simply overwrote the angular.d.ts with the [email protected] file and now ...
0
votes
1answer
27 views

Returning objects from controller in Angularjs

I'm trying to return objects from controller. My code looks like this: score.component.js: angular.module('score').component('score',{ templateUrl : 'app/score/score.template.html', ...