Tagged Questions
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 apps are also frequently known as Single-Page Applications.
2
votes
0answers
17 views
Set another controller scope variable without using angular.element (Angularjs)
I have Following div
<div ng-controller="MyController as MC" id="div1">
...
0
votes
1answer
6 views
On click of a div should route to another url in angularjs
How to redirect to other url when I click on a div using angularjs.can anyone please help me out ...
My html:
<div ng-click="redirectTo()">
<p>Hello</p>
</div>
My ...
0
votes
1answer
10 views
Sticky footer at the bottom in Angular 2
I'm building a project in Angular 2, and I need a sticky footer which always must be at the bottom of the page, not fixed. Example: http://codepen.io/chriscoyier/pen/uwJjr
The structure of 'app' ...
0
votes
0answers
9 views
After adding new field the output is coming NaN in angularjs
Blockquote
After selecting the category,the input field is length,width,thikenes.based on this input i am getting this output:-
Screed qty:1050,Cement:189bags,sand:12.60cft
But the problem ...
0
votes
0answers
15 views
How to use $modal in my controller
please find my below code,
.js file
var app = angular.module("rgMenu", ['ui.bootstrap']);
app.controller("MenuController",
function ($scope, $http) {
///Some code here
});
Everything works ...
0
votes
1answer
4 views
Cannot read property 'column_number_data' of undefined
I am using the datatables.net and the yadcf plugin in my angular application. The data is loaded via an ajax request. Now the first time the page loads everything works fine. When I then click into a ...
-3
votes
0answers
19 views
Angular 2 Typescript or Javascript?
I like to learn Angular 2. May I know which Angular is best typescript or javascript. I know angular 1 javascript and also ionic framework 1. If i learn angular 2 in javascript whether it help for ...
0
votes
0answers
6 views
Angular and angular-material [$injector:modulerr]
I started to learn angular, and I create basic app with angular-material. But I have an error: [$injector:modulerr]
My html:
<html>
<head>
...
<script ...
0
votes
0answers
5 views
Satellizer AngularJS - Create token after signup
im using satellizer for angular (https://github.com/sahat/satellizer/)
I have the signup and the login working great.
I want to have the user logged in after a success registration, this is my code:
...
1
vote
2answers
20 views
Angularjs: Refresh view after model changes
I'm trying to update the view after adding a new record and updating the model. On the income account details page you can add a new record via a form that pops up in a modal. After submitting the ...
0
votes
0answers
6 views
AngularJS UI-Router Resolve lookup
I am trying to do something more abstract with Resolve but failing to get the output. Looks like I am missing something.
Problem : I need to load the lookup table data before the view loads. So, I am ...
0
votes
0answers
5 views
dynamic images fetching from local drive to Carousel in java code
I am working on carousel concept , where i am new to it . I am trying to create a carousel where the images should be fetched from the local drive and display in the carousel with the java code. ...
0
votes
1answer
39 views
Angular select options not working
I am trying to create dropdown of days of the month in angular where the selected number will be passed into an elasticsearch query. The problem is that in order to have an 'all days' option the query ...
0
votes
0answers
13 views
After selecting element in ui-select how to move focus to button on enter key?
How to move focus on button once I select an element in dropdown using angularjs.
<ui-select on-select="onSelected(this)" ng-model="availableList.selected" theme="bootstrap">
...
-1
votes
2answers
28 views
get value of a <select> appears undefined. (Angular.js)
I'm trying to get the value of a 'select', but it always shows 'undefined'. I would like from the controller, setting the value to 'B' and at the same time get the value of . What am I doing wrong?
...
0
votes
1answer
15 views
Angularjs Checkbox checked
We have listing the products with the compare feature ( in checkbox). while go to next page, checkbox is unchecked. we try the following code, but we cant fix the issues.
In the View Page
<div ...
0
votes
0answers
5 views
Grouping Repeated JSON Data using AngularJS
Please Help Me, I have a repeated JSON object like this :
[{
"nip": "6080022A",
"nama": "ASLAN PURNAMA",
"semester1_2012": null,
"semester2_2012": null,
"semester1_2013": null,
...
0
votes
0answers
2 views
Setting up Ionic2 and Loopback frameworks - How?
I want to use Loopback with Ionic2 app. I would like to know how to configure service call and run my Ionic2 (ionioc 2.0.0-beta.17 & AngularJS2) app on loopback-local server.
Please provide ...
0
votes
1answer
23 views
Angular2: How to send data from client to server when making request
There is form and a button on client side, I want to send data that user typed in the form, to the server, where there is request handler that save data to the database, and from database to the ...
0
votes
2answers
14 views
How to make only one menu item active at a time using angularjs
I'm trying to make only one menu item as active.But when I click on specific menu item I'm getting all the menu items active.
I want to remove the previous active menu item and make the current ...
0
votes
1answer
10 views
AngularJS Module 'ngCookies' is not available MEAN stack
I have looked through a few similar questions but most of them relate to having Angular loaded AFTER angular-cookies, in my case this isn't true, I have been following a tutorial on creating an ...
0
votes
0answers
8 views
TypeScript using ng-switch
I am using Typescript wit MVC, in my controller I have the following object:
public details: any;
In the ng-click I call the function getDetails that is passing the value to my object: this.details ...
-1
votes
1answer
34 views
Angularjs pass variable to factory from controller
I'm trying to create a basic pagination. Backend is ready and tested. Each page contains 10 activity.
/feed/1 -> displays 0-10
/feed/2 -> displays 10-20
/feed/3 -> displays 20-30
I want to ...
0
votes
1answer
19 views
$http GET parameters are not read by servlet
I'm sending userId from Angular $http call. The servlet is hitting, but its not able to receive the request parameter. I'm fetching the request parameter by request.getParameter("userId");
Here is ...
0
votes
1answer
7 views
How do I use query-parameters outside ui-router
I have a ui-router-based Angular app, and I want to maintain some state which has nothing to do with routing.
So let's say the URL is #/profile?color=green. That means the state is "profile" and the ...
0
votes
0answers
4 views
Kendo tree list- how to add meta tag to child row <tr>?
I am trying to add some styling to certain child rows in kendo tree List.
To differentiate few child rows, i am trying to add a meta tag in html, for example:
<tr ...
0
votes
0answers
7 views
Problems with $anchorScroll on view with array of replies
I'm trying to allow someone to link to their particular reply on a page using a state parameter "scrollTo" and using the $anchorScroll function to scroll to the target reply. I have the scroll ...
0
votes
1answer
11 views
How to use element name in ng-show and form validation
I was looking at the W3school example of form validation for Angular JS, here is the code:
<form name="myForm">
<p>Name:
<input name="myName" ng-model="myName" required>
<span ...
0
votes
2answers
25 views
Angular join multiple fields to one field
I have tried to find article to copy value in each of fields to another field using angular.
I want to get start_date value by joining day, month, and year fields so it will show 2016/1/2.
HTML
...
3
votes
1answer
18 views
AngularJS count JSON array
Please help me, I have angularJS code like this :
.state('masterpegawai.alltalenta', {
url: '/alltalenta',
templateUrl: 'public/js/partial-masterpegawai-alltalenta.html',
...
0
votes
1answer
15 views
(answered) Promise from db transaction is being resolved but function after is not running. AngualarJS, Cordova
I'm trying implement autologin on my monaca application. To do this, I use web sql database. Upon manually logging in, I store user email and password. On subsequent startups,
I call on my SERVICE ...
0
votes
1answer
11 views
ng-model changes the text in input field to [Object object]
So I have an input field that takes an address selected from googles autocomplete api.
<div class="form-group" ng-show="editing || creating" has-class="{'has-error': roomForm.address.$invalid ...
0
votes
0answers
9 views
Ionic - Chaining promises only proceed when promise resolve
What I'm trying to do is I want chaining promises only proceed to next .then after promise is resolve. This is what I'm did:
Javascript:
var checking = false;
var defer = $q.defer();
var promise ...
-7
votes
0answers
28 views
How does AngularJS work behind the scenes? [on hold]
I'm having trouble learning Angular; I don't understand what it is exactly doing to my HTML. How can the browser render this HTML is it has all this new syntax? What is this data-binding and ...
0
votes
0answers
8 views
File upload and download - Angular with Node
I am working on project where I have to store a file/img/pdf for a particular user instance and retrieve the files when the user logged in.
So the theme is, whenever user uploads a file it should be ...
1
vote
0answers
12 views
How to setup and run angular js protractor test in jenkins?
I have following configuration but getting error
Jenkins commands
## run testing
node_modules/protractor/bin/webdriver-manager update --standalone
node_modules/protractor/bin/webdriver-manager ...
0
votes
0answers
20 views
Angular JS submit button submits multiple times
As angular JS submits the form even on clicking any of the buttons in the form , we have a fix, where in putting type=button prevents it.
But in my case even after adding type=button
clicking one ...
0
votes
0answers
11 views
Re-run reactive helper when $scope changes
I have a reactive data source in Angular-Meteor and would like to find a way to make the reactive function re-run after I change another of the $scope values. Here, I want to change the sort order ...
0
votes
2answers
18 views
How can I locally store and statically serve the angularjs library?
I am going to be working on an angular project without internet access, so my links to the cdn will not function. I would like to save the angularjs library to a folder inside of my project. Here is ...
1
vote
1answer
16 views
How to write unit test for a controller that depends on a factory service which itself depends on the $http service
I am struggling to understand how to unit test a simple app AngularJS with Jasmine and Karma. I have tried googling but haven't made any progress with my own code. Specially around mocking and ...
0
votes
2answers
15 views
changing element's look and functionality based on its content while page loads (AngularJS)
I have been trying to tackle this challenge for two days with no success. I have the following panel-box implemented using bootstrap and AngularJS (the whole thing is inside a controller)
<div ...
0
votes
1answer
25 views
How to trigger validation from custom directive?
I am trying to trigger my a validation that I have defined in a custom directive:
angular.module('app')
.directive('validPolicyNumber', function () {
return {
restrict: 'A',
...
0
votes
1answer
3 views
Initialisation of value attribute in date tags ignored
On iOS and Android, the following code fails to have the date tag pre-filled with the text returned by startOfYear().
<input type="date" value="{{startOfYear()}}">
For some reason the above, ...
-2
votes
1answer
17 views
Ionic back button causing overlap of prior two pages in history
I'm trying to figure out a problem I'm having with my back button which is just back in an ionic side menu.
The button works fine at first use. However, with continuing use at some point it will ...
0
votes
1answer
10 views
Cannot see icon with Ionic range slider black background
I am using ionic to make a mobile app. When I use background-color=#444, I cannot see the icons at all. Please see image.
<div class="item range range-balanced" ...
0
votes
0answers
8 views
How can I add data to firebase then store it into list items on my app
I have data passing between my views as local storage currently and would like to make it so when all the data has been entered and the finish button has been clicked the data is stored into firebase ...
1
vote
0answers
20 views
Replacing characters within a string in AngularJS
Although I've seen similar question's nothing quite answers why this doesn't work, and im unaware of an alternative.
I'm making a very simple calculator and when pulling the expression from the ...
0
votes
1answer
14 views
angularjs ng-show messes up form validation
I have an angularjs view with the following input field that is dependent on what organization the user is from..
<div class="form-group" ng-class="{'has-error': ...
-1
votes
0answers
11 views
Facebook login with Symfony2 REST app
Recently I've been working with Symfony2 based API. I have two separate projects - AngularJS frontend app and Symfony2 backend. I want to integrate facebook login, but I didn't find any resources ...
0
votes
0answers
9 views
How to use output of angular app template in django or any html based server side language
I have just purchased this template which uses node and angular:
http://themeforest.net/item/material-design-admin-with-angularjs/full_screen_preview/13582227
I want to use this with django. Is the ...