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

learn more… | top users | synonyms (2)

0
votes
0answers
6 views

d3 datamaps US state map redraw only individual state when clicked

I'm using the datamaps library to display the US map using d3.js I would like to only display a state when it is clicked. How can I do this using d3 or datamaps library? var map = new Datamap({ ...
0
votes
0answers
5 views

uncaught reference error: Require is not defined

I am working on angular js and when the controller loads, it comes with an error that require is not defined. var User =require('../datasets/users'); var fs = require('fs-extra'); var path = require(...
0
votes
0answers
7 views

Could not resolve 'expert.profile.strategy' from state 'experts.profile'

I have tried to use ui-sref on ui-router for angular 1. Almost everything works well, but I have stuck in this case. I want to load experts/:expertId/strategy, so I declared ui-sref code like this. ...
0
votes
0answers
6 views

How do you make the $mdDialog.prompt()'s field to be required

Here's their demo script. How do I require that the field be required? var confirm = $mdDialog.prompt() .title('What would you name your dog?') .textContent('Bowser is a common name.') ....
0
votes
0answers
14 views

How do I save values in database from an angular js phone.

How do I save values in database from an angular js phone. my url is http://jaymandhata.com/insure/quote#/form/profile and i am unable to do login functionality. Please send me steps or a guide ...
0
votes
1answer
14 views

No Data when passing Data from PHP(mysql) to AngularJS

I have a problem with AngularJS and php. Unfortunately my table (see below) is empty. But I dont get any data when i try to load the data in my (first) angularJS site. Here is my code: <!...
0
votes
0answers
25 views

Enable button in disabled fieldset with angularjs

I have a fieldset with many input fields, combos and buttons. To edit something, you have to activate an edit mode. Is it possible to enable one button in this disabled fieldset without using ...
0
votes
0answers
8 views

Promise from service is not getting resolved in jasmine

I have a function in service which returns a promise. When I mock $http post, the promise always goes to rejected state beforeEach(inject(function (testService, constantService, $http, $injector, $...
0
votes
2answers
19 views

angular deleting a row in a table

I'm trying to delete a row in a table generated using angular ng-repeat directive and I get a "DELETE http://localhost:3000/api/delbike 404 (Not Found)" error. I suspect this to be an issue at the ...
0
votes
0answers
12 views

how to call controller function from run block with id in angularjs

I want to call controller function from run block. HTML <div id="yourcontroller" ng-app="" data-ng-controller="mainController" data-module="yourcontroller"> </div> And inside my run I'...
0
votes
0answers
12 views

browser.d.ts not found using Angular 2 RC4

Everytime I build my Angular 2 application I get the error node_modules/angular2/typings/browser.d.ts not found I've seen several posts that say I need to add this reference: ///<reference path=...
0
votes
0answers
12 views

api call on init and params change

I am attempting to make an api call based on params using angular2. I need to make this api call when the component is initialized and when the params change. Below is the code I am using. The problem ...
0
votes
1answer
20 views

how to call controller function from run block only with classname in angularjs

I want to call controller function from run block. HTML <div class="yourcontroller component section" ng-app="" data-ng-controller="mainController" data-module="yourcontroller"> </div> ...
1
vote
1answer
11 views

why filter not apply on angular 2?

I am trying to use pipe or filter in angular 2 .I getting this error [email protected]?main=browser:484 Unhandled Promise rejection: Template parse errors: The pipe 'search' could not be found ("<div&...
0
votes
1answer
15 views

angular add/update json object from user input both attribute and value

I am able to get both attribute name and value from user input {{attribute}} and {{value}} how do i add these to an existing json object $scope.items ={ name: peter, age: 16, {{attribute}}: {{...
0
votes
1answer
10 views

back button isn't doing anything using angularjs

This is how I specify my route. .state('app.partners', { url:'/partners', templateUrl: 'partials/dashboard/partners.html' }) .state('app.partners.id', { url:'/:id',...
0
votes
0answers
7 views

angular material material design horizontal nav tabs convert to mobile menu when browser window size changes

I have created AMD page with horizontal tabs using <md-tab> and i want it to be mobile menu when i change browser size to small size then resize to normal and vice versa like bootstrap mobile ...
-1
votes
0answers
5 views

Click checkbox and then change the chart based on D3.js

I got a kinda tricky questions here. Since I am trying to realize a function where you click the checkbox like facility,suburb, the radar chart will show ONLY the facility and suburb info. when you ...
0
votes
2answers
17 views

How to retrieve data into selenium java script using Angular method

I want to retrieve visitor ID from “visitor” or "visitor.VisitorId" . but below code I use to retrieve data but successfully run without any error but I received value is null. HTML Code:- <ul ...
0
votes
0answers
3 views

unit test document.querySelector angularJs - Karma (w Mocha)

I am having issue unit testing querySelector line in my controller let button = document.querySelector("#"+button); button.removeAttribute('completed'); When I am injecting the controller using ...
0
votes
0answers
8 views

Migrating ASP.NET User Controls to Angular 2

A client wants to migrate their big ASP.NET application (consisting of many ascx user controls) on many pages to Angular 2. No need for SPA, just rewriting the User Controls using Angular 2. Are ...
0
votes
0answers
13 views

AngularJS $watch not behaving as expected

I have a directive that should call a function whenever a service variable is changed. The following code is inside the directive: $rootScope.$watch('movesService.selectedMove', function() { ...
0
votes
2answers
9 views

I am trying to inject a partial template in Angular that contains a graph

I am creating an Angular application in ASP.NET with partial templates. When I select the menu, and click "Employees", a controller calls a webservice and returns the correct JSON data, and I store it ...
0
votes
0answers
12 views

dynamic template rendering in angular.js

I am writing an application where i wrote a common html for my dynamic template. SO based on my JSON i am rendering the template content. here is my JSON- [{ "templateOptions": { ...
2
votes
0answers
8 views

Will compilation phase be invoked only once for multiple instances of the same angularjs directive

I have read at multiple places that the angularjs cmpialtion phase is invoked once only if the directive is inside an ng-repeat. What about the case when there are multiple instances of the (same) ...
0
votes
2answers
17 views

why row is not render in angular 2?

I am trying to send data from one component to another using input attr. but I am getting this error VM575 [email protected]?main=browser:484 Unhandled Promise rejection: Template parse errors: Can't ...
0
votes
0answers
9 views

Reading angular data before its bound html

I have span tags that I get the contents of using a function, but before the HTML is updated with the angular scope variable, the function grabs the string "{{projects.title}}" I have tried using ng-...
0
votes
0answers
6 views

Hosting AngularJS application in DMZ

We have an Angular2 application which talks to REST server (hosted on TOMCAT) which in turn talks to db etc; We want to host Angular2 application in DMZ to be accessiblr over internet; something like ...
0
votes
1answer
21 views

Angular JS trying add a text to speech function

<ion-view view-title="Call Center" > <ion-content = "padding"> <div ng-controller="CallCtrl1" class ="callPosition"> <!--button >Broken Lamp</button--> <p ...
0
votes
0answers
7 views

Use APIs of 2 angular google map modules in same app

Can both these angularjs google-map modules be combined into the same web app without causing conflict? https://github.com/allenhwkim/angularjs-google-maps http://angular-ui.github.io/angular-google-...
-2
votes
0answers
5 views

why my $locaotionProvider and $routeProvider don't work as I expected,even the location hash did not change?A test tutorial just like angular phonrcat

here are my iusse's github address,beacase I think the problem may occurs beaacse of my architecture. https://github.com/xiaokk06/guestbook_Angular.git
-2
votes
1answer
16 views

AngularJS - getting “Uncaught Error: [$injector:modulerr]” message on a simple app

I'm following along with Linkster's online tutorial that shows how to make a reddit clone using the MEAN stack. (https://thinkster.io/mean-stack-tutorial#angular-routing) I've gotten to a point where ...
1
vote
1answer
17 views

Getting external variables inside Angular.js factory

I am giving my first steps with Angular.js and I am facing a little problem which I don't know how to deal with Angular. I know many jQuery ways for solving it, but I am sure that it may exists an ...
1
vote
0answers
12 views

Few issue's with custom ng-if function

Last few days i've been trying to understand more clearly differences between compile and link functions in angularJS. Cutting a long story short, what i gathered was that when your directive needs ...
0
votes
0answers
16 views

Remove $modal, modal Instance and change into a form in container. no popup

Someone help me know how i do a little tweaking to the code below i want to remove the modal instance $modal from the code and change it into a fixed box on page instead of flying box. MainController ...
0
votes
0answers
10 views

Change values between views - Ionic Controller

Im using the same controller for 2 views in Ionic, because, its the same information I need. Let me explain, at the view "config" I use ConfigCtrl, at this view I had a language option, when ng-...
0
votes
1answer
15 views

set timeout for script and show pop when its due

i'm trying to set a timeout for this script and also show a popup when the timeout is due $scope.mainloginAlert = function() { var alertPopup = $ionicPopup.alert({ ...
0
votes
1answer
7 views

Filtering angular table results by value selected in dropdown menu

Given a table of JSON data, I need to be able to filter the results based upon the movie genre the user selects from a dropdown menu. I currently have all of the genres from each movie being pulled in,...
0
votes
1answer
12 views

How to pass specific JSON data from one factory to another factory in Angular JS?

I'm trying to build a simple Weather App using Angular JS. I've created a - 1)Html Page 2)3 Angular Js components - CONTROLLER angular .module('weather') .controller('weatherctrl', function($scope, ...
0
votes
1answer
7 views

Add/Remove 'attributes' based on Angular variables or evaluated expressions in angularjs

i know ng-class can add/remove 'classes' based on Angular variables or based on evaluated expressions. But if i want to say put an attribute like 'readonly' on an element based some variable in the ...
1
vote
0answers
11 views

Having trouble integrating D3.js (collapsible tree) into Angular application

I'm working on an angular application. I want to add in the following d3 chart, however when I simply plug in the Javascript into my controller, styles into my stylesheet, nothing appears. Something ...
0
votes
0answers
5 views

Can angular-translate support multi-line translations?

I have some translations now that are paragraphs of text which quickly become tedious to manage as single JSON strings: { "a": { "b": "This is a really long translated value I have here..." }...
2
votes
1answer
13 views

How to write Angular/React-like PHP Components

I wrote a PHP Class that works by constructing a paginator by passing it a current page value and a number of pages to show value like this: $paginator = new Paginator(1,4); then I out put it like ...
0
votes
0answers
19 views

Consume rest services in Angularjs

I am newbie in angularjs and want to know how we can consume rest services in angularjs code, suppose i have a restful service written in spring and the data is such as WEB SERVICE 1:LOGIN FOR ADMIN: ...
0
votes
1answer
23 views

angular Uncaught ReferenceError: Service is not defined

I have the following component in which I am trying to inject a service: angular. module('phoneList'). component('phoneList', { templateUrl: '/static/common/angular/phone-list/phone-list....
0
votes
0answers
15 views

angular.js moment previous/next month navigation

I need to make a navigable calendar and i'm using angular moment library for date calculus. I have the calendar but I need to make the previous and next month buttons. For now, I managed to find out ...
0
votes
0answers
5 views

Angular.js Rails Resource Association Update

I am working on an angular app w/ rails using Angular Rails Resource. When a user updates a photo, I want to query an association and update an attribute to true. I have read through the Angular ...
0
votes
0answers
7 views

recommended calls to server for same data with multiple directives

In our app, we try to build individual components for the different parts of the page. For example, these would be three different directives we have: 1) customized toolbar directive that checks if ...
0
votes
0answers
12 views

angular get result of one component in another component

I'm really new to angular and trying to figure out how to get component functions to talk to each other. I have a phone-list.component.js in which I do a HTTP get that relies on a session variable: ...
0
votes
2answers
19 views

Using Angular ng-If to build views

I'm working with Ionic(1.3.1) I have an rootscope array with currently 4 items. $rootScope.special= [ { title: 'item1', id: 1 }, { title: 'item2', id: 2 }, { title: 'item3', ...