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
10 views
Getting value from angularjs scope object
I have the following angularjs for posting value to php:
$scope.aToUn = function(aName) {
//$scope.question.question_16 =UnionsId;
var outputType=[{type:'aName',action:'none',PassId:aName}];
...
0
votes
0answers
11 views
$q.all() not running all promises before then clause
I need to finish all my ajax calls to enable a button, but I am not getting all my promises done before enabling the button.
I have this piece of code with all my ajax gets:
$q.all([
...
0
votes
1answer
9 views
Angular JS : ng-style is not working while passing data to directive
I am using ng-style for populating width of an element.
Code:
<div ng-style="{'width':'{{cols}}'+'px'}" id="autocompleteSuggestions" class="autocompleteSuggestionsDropdown" ng-show="...
0
votes
0answers
11 views
template of custom angular directive repeats every time a scope variable of directive is changed
I have an array binded to an attribute of a custom directive. This attribute value is used in my template part. The template run everytime the array gets changed right?. This template creates a div ...
1
vote
6answers
32 views
AngularJS, $scope.amount is not showing to two decimals when a on double click event is used
I have two $scope's. $scope.grandTotal and $scope.amount, if i double click on the input field for $scope.amount, it automatically populates the input with the value from $scope.grandTotal:
<...
-1
votes
1answer
22 views
404 error on Plunker for Angular2 code?
Please check this plunk link
I am 404 error, I am unable to find it , please anyone can solve it, and update my plunk
Here the link https://plnkr.co/edit/rKxWDg?p=preview
0
votes
0answers
9 views
How To Capture Third Party Widgets API reponse In My Application Javascrpit/Angular/Jquery
Hi I am doing application using Angualrjs/Javascript. I am able to load third party UI in my custom web application by calling third party API URL in iframe tag. UI loaded successfully and working ...
1
vote
1answer
7 views
How to override Angular 2 provider from external module
I have a separate LocalizationModule that contains LocaleService which has defaultLanguage as dependency:
import { Injectable } from '@angular/core';
@Injectable()
export class LocaleService {
...
1
vote
0answers
8 views
Reload not working when passing multiple params in ui-router state
I am using ui-router with parent and child states. My states are defined as below :
.state("home.ben", {
url: "/beneficiary/:name",
abstract:true,
templateUrl: "app/ben/views/ben-form....
1
vote
0answers
11 views
how can we access psuedo html elements using selenium webdriver?
how can we access psuedo html elements using selenium webdriver? Example input::after, input::before etc. These elements contents are not displayed in dom but is visible on page.
1
vote
1answer
18 views
How to use ng-repeat with indexes in html
I have got a case in which is difiicult to explain so i put screen shots as follows
CASE:1-
Initailly when i click on add-on-one-field,i get the heading div like below,
CASE:2-
When i click ...
0
votes
0answers
11 views
ng-route is not loading the content of other page
index.html
<!DOCTYPE html>
<html>
<head>
<title>MyProject</title>
<!-- <script src="js/angular.min.js"></script> -->
<...
1
vote
3answers
14 views
Angular.js UI-Router templates are not loading
I'm making a simple Angular Website. For Routing I'm using Angular-ui-router. When I click on Home, About the templates are not loading whereas when I click on Contact the template loads perfectly. ...
0
votes
1answer
18 views
How to create a JSON from checkbox value?
I have table with ng-repeat values which I fetch from mysql(Codeigniter).
and this table has checkbox which I select to create a JSON.
<tr ng-repeat="subject in subject_list | orderBy: '...
0
votes
0answers
8 views
Datepicker mindarte not working in directive
I set minDate in datepicker directive for disable past dates but it is not working.when i include jquery-ui.js its working fine but the issue is it changes my old datepicker view.
MY directive code ...
0
votes
0answers
12 views
md-select rtl with special character issue
I have a list with one of value starting with special character '@'.
$scope.neighborhoods = ['john','adam', '@jhonny'];
This list is used in md-select with direction: rtl. but in display the special ...
-1
votes
0answers
16 views
Getting Array length as 0 when data is called from service in angular
I am calling a data from REST Services but I am getting the length of an array as 0, even if the array contains object.
My code is as follows :
$scope.amenityDetails = AmenityDetailService....
0
votes
4answers
28 views
How to get values from a URL using hash and split
I have a url like this
http://localhost:9000/index.html#/acceptRequest?screen_name=kailash&rf=FIN1
Here I want to take FIN1 from the url and store it in another variable
I am using doing this in ...
0
votes
0answers
15 views
Uimask changes min max lentgh of ng-minlength
<div layout="column">
<md-input-container class="md-block" flex-gt-sm>
<label translate>Company Phone</label>
<input name="companyPhoneNumber"
...
0
votes
4answers
19 views
How to use ng-if with angular-translate
I'm writting a mobile app using Ionic framework, also I'm using angular-translate, and its working nice, but I want to display content in English or Spanish depending on user language selection. I'm ...
-1
votes
3answers
41 views
ng:repeat not loading data
This is my controller function to get data from server.
function carsController($http, $scope, $timeout) {
var vm = this;
vm.getCarData = getCarData;
function getCarData(){
$http....
0
votes
3answers
40 views
Find the parents parent element using jquery
I have the HTML as follows. what i need is when someone clicks on the span element i want to find its parents parent element check some conditions. i used prev() method but it gives me only the near ...
0
votes
1answer
15 views
What changes are required to use live API in Heroes example in angular 2.0
Given I am new to angular 2.0. I have gone through Heroes example https://angular.io/docs/ts/latest/tutorial/ on this page and need to convert this example to use live APIs. I have created API and ...
0
votes
1answer
10 views
Angular Reset Initialization Value which is in view not in controller
I have initial object and value in view not from controller.
<input type="text" data-ng-show="false" data-ng-init="crud.data.userId=1" data-ng-model="crud.data.userId">
<input type="text" ...
0
votes
0answers
11 views
TypeScript with Visual Studio 2010
Is there are any way to work with TypeScript on Visual Studio 2010 ?
here what im tired :
I have read the some articles and stackoverflow articles those are created base on 2012 and not those ...
0
votes
0answers
9 views
Rails & AngularJS – Long polling, WebSockets, or Server-Sent Events for one-off long-running tasks?
I have a Rails 4.2.5 / PostgreSQL JSON API with an AngularJS 1.4 SPA front-end running on Heroku. There are a few tasks, such as generating a project summary, which can take 30s + to complete and ...
0
votes
0answers
11 views
Webpack configuration not loading my image paths on .ts files
I'm very new with webpack, and actually this whole modern front-end development. I'm trying to learn angular2 this past few weeks, it was fine until I wanted to deploy it. I came across webpack that ...
0
votes
1answer
15 views
How to load menu on login in Ionic?
I'm facing a problem where I want to add a condition wherein I need to hide some of the buttons in the menu depending on the user who is logged in. This is easy just a simple if-else statement. My ...
0
votes
2answers
32 views
parseInt return value from radio button AngularJS
I've been trying to figure this out for a couple of days now...
I've got a set of radio buttons to rate something between 1 and 5 with each set to value = 1, value = 2 and so on as part of a comment ...
2
votes
1answer
20 views
New Dropdown Appear When Previous Dropdown is Selected
I'm trying to make a dropdown appear only when specific data are selected from previous dropdown. If it is not selected, then it won't show up.
I include a picture to describe more of this Dynamic ...
1
vote
2answers
31 views
AngularJs Bind Directive parameter to mdDialog's Form
Hi guys I have a very complicated issue.
I have created a reusable directive and now i want to take the user's parameter value and bind it to my form inside the directive.
At the user's side, they ...
0
votes
1answer
18 views
Why is binding value not available in controller immediately in angular
I'm trying to bind some values in an angular 1.6 component that should be available to the controller code.
I must be misunderstanding it, but the variables aren't available when the controller runs. ...
0
votes
3answers
27 views
How to get state using Angular UI-Router?
I am trying to migrate my Angular routing from routeProvider to stateProvider with below code, I don't see states content when click on navbar, any idea what's wrong?
app.js
angular.module('...
-2
votes
0answers
15 views
Highlighting word while typing in input box in angularjs
How should we highlight the word while typing in input field.
Please refer this link and see the video in which they have implemented the input box, which is highlighting the word while typing and ...
1
vote
2answers
29 views
Alignment of the content in navigation page
I have created a plunkr here
I have a main page with left navigation (index.html). When I click on Header details the AddHeader.html page should be opened. Where I have added all the files. I think I ...
-2
votes
0answers
11 views
Minifying Angular.js - Best Practices as of 2017
I know there are several of these topics posted but many of them date back to 2013 and Im sure alot have changed since. I thought it might be good to revisit the issue.
I know the issues with ...
1
vote
0answers
13 views
How to let $ionicFilterBar only search on `enter` key hit or onblur event instead of keypress?
I followed this tutorial to implement ionicfilterBar on my ionic 1 project. The default function in this tutorial I understood that the searching were during typing. How I want to make it custom so ...
0
votes
2answers
22 views
angular2 - can't connect to API “No Access-Control-Allow-Origin”
I am new to Angular2. I am trying to implement an authentication to an app with a username and password login credentials but I always get a "No Access-Control-Allow-Origin"
below is my code:
...
1
vote
1answer
16 views
css: strange and confused layout of li element in the horizontal direction
In my application, I came across an issue and reproduced it with the following demo:
http://plnkr.co/edit/ftZSl0Cv6GY7WbaMMlhv?p=preview
I used ng-repeat in angular to generate several <li> ...
0
votes
0answers
17 views
How do I get the value of the selected element in an angular repeater
I have a comment controller with a reply controller inside it. The comment controller uses ng-repeat to display all the comments about the current post. Then the reply controller takes the ID of the ...
0
votes
2answers
15 views
angular js view not recognizing variables in the controller
I am accessing the JSON object from the API, iterating through it and storing the information in a variable. All of the above steps is being performed in controller. But when i try to get those ...
0
votes
2answers
26 views
Angular copy doesn't keep client up to date
I'm creating a simple add post and comments app with https://thinkster.io/tutorials/mean-stack/wiring-everything-up. After finishing this section I should be able to add a post or comment and it save ...
0
votes
1answer
4 views
how to set currentpage to be last with dir-paginate
I am using : https://github.com/michaelbromley/angularUtils/tree/master/src/directives/pagination
I want after adding a new element to the list, to make my currentPage be the last page.
I tried using ...
0
votes
2answers
16 views
localhost serving old file saves
First, I apologize that I don't fully understand what's going on here. I am new to AngularJS and I am building an app that I am running on localhost:3000. I make changes to my files, and I refresh the ...
0
votes
0answers
7 views
how to use two regex variable into single ng-pattern directive?
I am trying to pass two regex variable regex1 and regex2 for email and mobile number into single ng-pattern by using "OR" condition but it is not working. if i pass a single variable at a time then it ...
0
votes
0answers
12 views
AngularJS ngRoute #! error (possibly an nginx error) [duplicate]
I'm using an Angular version of 1.* with the ngRoute module. Everything in my project is wrapped up in a Grunt task. When I use my grunt watch function, while developing, everything works fine, alls ...
0
votes
0answers
6 views
Ionic - Running Same Page Multiple Times
I am trying to make a chat app and this app includes a logging out page.
To log out the user more than once (since they can login more than once with different usernames), I need to run this page ...
1
vote
0answers
8 views
What Angular 2 Tour-of-Heroes files do I need to deploy to a web server not running node
I have the Angular 2 Tour-of-Heroes tutorial running on my local machine, but I would like to deploy it to a server not running node. I've tried to upload the node_modules folder, but it is huge and ...
0
votes
1answer
19 views
AngularJS: Best Strategy for Handling Component-specifc CSS in a large application
I'm working on a large Angular 1 application with hundreds of components. It has global CSS styles, then a few LESS stylesheets for component-specific tweaks.
This causes several issues:
Hard to ...
-1
votes
0answers
11 views
How can I add a switch user option in facebook login?
So I've been browsing the facebook documentation and googling and I was surprised I could not find how to do this :
I have a basic angular app, i want users to be able to login with facebook. I ...