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

Angular HttpInterceptor errorResponse has the wrong status

The server returns a 403 Forbidden status, but angular interceptor retrieves a -1 status... any ideas? Options request returns a 200 OK...
0
votes
0answers
13 views

Default value for input number always 0

So i want to set a default value for my input field. <input id="useramount" name="useramount" type="number" class="form-control" ng-model="$ctrl.amount" min="{{$ctrl....
0
votes
0answers
7 views

Angular - Filtering Items in List using Checkboxes

Very new to Angular and working on a practice project with lists of items that I need to sort and filter. Got the sorting done, but I'm stuck on filtering items in the list to only display products ...
0
votes
0answers
12 views

Div disappeared after using the ng-repeat

I have two divisions next to each other which was diplaying fine. After adding ng-repeat in one of the divisions, second division disappeared. Here is my HTML file <div id="map-container"> <...
0
votes
0answers
4 views

Angular-Wizard's nz-step with ng-repeat not working

I have tried using wz-step with ng-repeat, Example: <wizard> <wz-step> " 'datatables' array is getting updated here" </wz-step> <wz-step ng-repeat="datatable in datatables"> ...
0
votes
0answers
6 views

How to include a new search component (html) in an angular project

I have an angular project that uses an old component for search that you can see here : As you can, I have three classical list buttons that enable a simple search. What I want to do now is to ...
0
votes
0answers
4 views

bootstrap multi-selector as angular directive

I am using bootstrap-multiselectr [https://github.com/davidstutz/bootstrap-multiselect] as an angular-directive. I have made the custom directive like given below: { .directive('multiSelect', ...
0
votes
1answer
14 views

Why my Angular state is not being loaded?

At the start of my app, I have : $urlRouterProvider.otherwise('/loading'); which brings control to my loadCtrl. Here I have: Service.getRoleDetails(config.USER_DETAILS_URL).then(useRoleDetails, ...
0
votes
0answers
15 views

POST gives 500 error on registration using Express.js and Passport.js

I'm following a tutorial. Basically my app is about creating posts and comments to those posts. I've added a registration to the app using Passport.js, but it's giving me error 500 and i can't figure ...
0
votes
0answers
14 views

Angular tab order in nested views

I have a problem with my tab-index in nested views. $stateProvider .state("Front", { templateUrl: "views/front.html" }) .state("Front.Page", { url: "/page", ...
0
votes
0answers
5 views

how to set dynamic metadata from firebase 3.0 in angular JS (With Firebase hosting server)

i am trying to set metadata from firebase response but not display while sharing with social media index.html Code <title>{{metatags.title}}</title> <meta property="og:description" ...
0
votes
1answer
9 views

Show factory variable in view without controller inheritance

I currently have 1 factory that looks like this: export function PageFactory() { var title = 'default'; return { title: function() { return title; }, setTitle: function(newTitle) ...
0
votes
1answer
14 views

How to handle nested promises?

I'm fairly new to the promises concept, at least at creating them. I've read documentation how they work and I get how a promise works. I also understand how you can trigger some callback when all ...
0
votes
0answers
13 views

Angularjs - Reusable Directive not working

I'm writing a custom directive that wraps around 3 input fields. The first one is for the zip code, the second one for the city and the third for the street name. When I enter the zip code and tab out ...
0
votes
0answers
4 views

How to filter globally multiple values (OR operation) in NgTableParams (angularJS)?

I use one input field to filter globally my ngTable row objects. Any time the input changes, the NgTableParams is reset to update paging etc. Search for any value: $scope.tableParams = new ...
0
votes
0answers
4 views

Dynamic google charts configuration

We're planning to use google charts in our project and we use Angular JS for front end. (New to both Angular & Google charts) Does Google chart provide any readymade UI for configuring each type ...
0
votes
2answers
12 views

Angular route condition for url like 2010/10

How can i write $routeProvide when condition for url like www.example.com/2010/10 ?? I have written condition like .when( '/{year:[0-9]+/{month:[0-9]+', { templateUrl: WPAngular.partials + '...
0
votes
1answer
20 views

angularJS $states optimization issue

Basically, my question is about angular $state optimization. I have a small project, and every time a call a certain state, which have around 9 objects to resolve, it takes about 3-4 seconds to load a ...
-1
votes
0answers
15 views

angularjs select change event inside ng-repeat issue

I have an onchange event of select which displays result for all the rows of repeat <div ng-repeat="Q in Questions" class="login-grid"> {{Q....
1
vote
1answer
24 views

How can i fix the header of a table whose width is not fixed?

I have a table to which a user can add new columns. The width hence is not fixed. How can I fix the header for such a table? I tried: display:block overflow-x:hidden overflow-y:auto height:70% in ...
0
votes
0answers
16 views

$state url mismatch with angular ui-router

I have the below two routes : .state({ name: 'main', url: '/main/:clientId', templateUrl: '/main.html', controller: 'mainCtrl', }); .state({ name: 'mainDashboard', url: '/{...
1
vote
1answer
14 views

NgClick binding issue inside ionic modals

I cannot bind any clicks inside my modal. The modals is defined in my controller: $scope.fooBar = function() { alert("FOO!"); }; $ionicModal.fromTemplateUrl('templates/modals/withdrawal.html', { ...
0
votes
2answers
28 views

Using $http in AngularJS + WebAPI

I am trying to print out list of categories using AngularJS on top of WebAPI. I have the following page and when I navigate to it, I get alert message containing "-1". <!DOCTYPE html> <html&...
1
vote
1answer
11 views

Angular2 pipes with http service

I want to transform keys to value(fetched from server using server call). View <div> {{ 'SomeText1' | performtranslation }} </div> <div> {{ 'SomeText2' | performtranslation }} </...
0
votes
0answers
11 views

How to use bootstrap JS-plugins like accordion with angular single page application (using .otherwise method)

Here is a simple SPA with angular-ui-router Plunker However, i used bootstrap accordion in the accordion state but as u guess the accordion behavior doesn`t work unless i comment the otherwise ...
0
votes
0answers
12 views

Not able to get response header in angular JS from Web API2

Following is the response returned by Web API2 method: Response Headers { "cache-control": "no-cache", "pragma": "no-cache", "content-type": "application/json; charset=utf-8", "expires": "-1"...
1
vote
1answer
32 views

Add data to JSON file

With a form, I want to add data to my JSON file. How can I do that ? Do I need to recreate a JSON file or can I add data to my existing JSON file ? The $http.post doesn't work so it's a bad use of it ...
0
votes
0answers
16 views

How to add sum of columns in the bottom of data-ng-grid

I'd like to like to ask how to sum of columns in the bottom of data-ng-grid. I hope the data-ng-grid is like that colA colB .....colF colG 1111 222 ......111 222 2222 111 ......222 ...
0
votes
0answers
14 views

how to update multi select autocomplete dropdown collection in angularjs?

Demo Link Here Hi friends, Here I tried parent child multi select autocomplete dropdown. based on the selection Child dropdown value need to update. $scope.$watch('item', function (newVal, ...
1
vote
3answers
33 views

Angular Trigger Div Click based on condition

I need to disable click on certain divs based on some condition. Can anyone guide me please? Currently am using ng-disabled which is not working Working Demo below for you to play .aw-right-...
0
votes
0answers
11 views

Country -> State-> City dynamic Select using angular -schema- forms

I am currently using dynamic Select drop-down using angular schema forms and my requirement is to select states based on a country selected. I'm storing data in db like this Countries->states->cities....
0
votes
1answer
24 views

What's wrong with my code to go to a child state in UI Router

Let's say I've configured an state as follows: { name: "results", parent: "modules/globalSearch/main", url: "" // other settings } * Note that I'm not using URLs. "modules/globalSearch/main" ...
0
votes
1answer
23 views

How to find the function caller in angularjs

I have build an angularjs application. there are many places I used javascript console functions. now I want to use a single variable to turn off those console. I dont want to check the variable ...
0
votes
0answers
26 views

Got error when nodeJS connect to mysql

This is my server.js: var express = require('express'), bodyParser = require('body-parser'); var app = express(); app.use(bodyParser.urlencoded({extended:true})); app.use(bodyParser.json()); app....
0
votes
0answers
13 views

WebStorm doing wrong TypeScript import

I'm trying to write some Angular 1 with TypeScript in my WebStorm, but did anyone ever had the issue that WebStorm imports the references wrong? it imports it like this; import ILogService = angular....
0
votes
0answers
15 views

Angular.js: TypeError: Converting circular structure to JSON

In the app I am creating, /post endpoint works but the /edit endpoint returns "Converting circular structure to JSON" type error. No response is got from server. What is the issue while updating using ...
0
votes
1answer
31 views

Ng-Click not being fired

I have made a code snippet which I use in multiple partial views. In all views it seems to work except one. There is nothing special about this particular partial view, and the code snippet is the ...
2
votes
7answers
41 views

ng-show for multiple value

This is my Table <table class="table table-bordered table-responsive table-hover add-lineheight table_scroll"> <thead> <tr> <th ng-hide="...
0
votes
2answers
14 views

How to set a default value in ui-select in angular?

I wrote a little program in Angular using ui-select elements. Here is the html code : <ui-select ng-model="test.selectedContract"> <ui-select-match > {{$select.selected.name}} ...
2
votes
3answers
38 views

How to get property name and value from array

so i have object that have many properties, i need to get all values and property names from that object, i'm not sure what is best and easiest way to do it. I already tried few methods but didn't had ...
-1
votes
0answers
9 views

how to install fractal in ubuntu 14.04?

The error as shown below The "https://packagist.org/packages.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Name or service not known failed to open stream: ...
0
votes
1answer
11 views

Angular jS Multiple Checkbox dropdown filter

I have a Multiple Checkbox Dropdown. I want to make it as a Filter. So, That if I check one or more boxes it should display data in Table accordingly. How can I map this Multiple checkbox dropdown ...
0
votes
0answers
5 views

Whether to pass servicename or add a new State for each for a better design?

I am having a design problem. Trying to put the situation in a very generic way. I have a UI directive which shows list of files, developed using Angular which is using states(ui-router). It has one ...
0
votes
0answers
10 views

How can i convert angular js default bootstrape pagination with custom button

I am new in angular js and I implementing angular js pagination with table. Everything working fine but I need to change default pagination to my custom pagination. Html code, which currently being ...
0
votes
0answers
5 views

how to install google analytics in angularjs universal

Can any one help installing google analytics code in angularjs universal. i have copied the script and pasted on my index file but when i look in analytics it showing up with home page views more that ...
0
votes
0answers
7 views

Angular X editable Combodate Date Showing format

I've my html in which i'm using Angular - X editable : {{risultato[0].data_inizio }} Where risultato[0].dataInizio is an angular variable and it's a date....
0
votes
1answer
10 views

Full Calendar Customization for particular day

How can I customize full calendar Particular day's color. (For Example, I want to set red as background color for all Friday in a month)
2
votes
0answers
28 views

angularjs - Cannot read property 'hasOwnProperty' of undefined

This is my code: var getserverstatus = function () { $http.get(FSERVERSTATUS) .then(function (data) { data.data.forEach(function (staItem) { ...
0
votes
4answers
41 views

$scope.$watch does not listen in AngularJS 1.6

I have a problem with my script which collects data from database in parts. I would like to inform Angular when downloading data is finished so I used $watch. Unfortunatelly, it does not work. Angular ...
0
votes
1answer
16 views

md-toolbar not rendering as material toolbar using angular material

I'm using angular material v1.1.0 and trying to create a simple toolbar. I've taken the code from angular material demo, but the toolbar being rendered, instead getting individual elements. Not sure ...