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
16 views
AngularJS ng-show - 2 Times, 2 different results
I am creating an app with angularjs, cordova and iconic.
I have a trash icon which should be show only when the user is at the main page.
So i will show the icon only wenn the rootScope.Trashicon ...
0
votes
0answers
9 views
Read huge data from java to angular js
I am trying to read 100000 records from java mainly from cassandra to angular js and download in a file in GUI. But the page get hanged up moment it get huge data.
What can be an optimal solution.
...
0
votes
0answers
6 views
Field has data Even also showing red box
<input id="dcNumber" type="text" class="form-control" tabindex="1" onkeypress='return event.charCode >= 48 && event.charCode <= 57' name="dcNumber"
ng-model="dcEntryCtrl.dcMainVm....
-1
votes
0answers
14 views
How do I add angular 2 to my C# web application
I want to include angular 2 in my web application
I tried this beginners tutorial
If I create a node js project and use commands like npm install etc it works fine
But what if my project is a C# ...
0
votes
1answer
17 views
Angularjs hidden div visible when clicking
The following form shows a list of data on submit. I am trying to show no results found when there is no data on submit. It works okay. But when there is data available to list, "no results" shows up ...
0
votes
2answers
13 views
How to get username of currenlty logged on user authservice
I would like to get the currently loged in username so i can display it. But i dont know how to do it ? Any ideas ? I am using authservice Here is my angular controller in which i would like to get ...
0
votes
0answers
16 views
How to push data in nested array in angular JS and then later sort the whole data together
Below is my HTML page, i am trying to fetch data from controller and display on page, later an user submits the comment ad the comments gets added to existing data and to be sorted by either date, ...
0
votes
1answer
14 views
ng-model value is not coming in date filter using angular js
I am doing angular js search between from one date to another date using date picker .
I have made it ,every thing working fine .
But i am not getting the dynamic value of the date .which i have ...
0
votes
0answers
9 views
Angular 2 - testing a component with @input used in ngOnInit lifecycle hook
Currently I am trying to test a child component which is accepting an input from the host component, and used within the ngOnInit life cycle hook like the code below.
@Component({
selector: 'my-...
0
votes
1answer
10 views
can any one guide me what is error in this code?
Question :The following ng-option code is not working i not able to identify error
Code:
<html>
<head>
<title>
This is example of ng-option
</title>
<script src = "https://...
0
votes
1answer
24 views
AngularJS With ASP.NET MVC-Confused
Please Note: I have read some questions like this in Stack Overflow but did't get the clear concept that I wanted from those answers. So please don't mark as duplicate!!
.................................
2
votes
4answers
35 views
Dynamic ng-repat in angular JS
My angular controller is
$scope.dyna = [
{ "name": "parshuram", "age": 24 },
{ "name": "Tejash", "age": 26 },
{ "name": "Vinayak", "age": 25 }
];
My html
<table>
<tbody>
...
0
votes
1answer
11 views
ASP.NET MVC and Angular 1.5 architecture and responsibilities separation
I am developing, with a colleague of mine, a web application with ASP.NET MVC 5 (just MVC from now on) and Angular 1.5. I would use MVC purely as backend actor: exposing APIs and interacting with the ...
0
votes
1answer
14 views
How to display values in jqgrid
How to display the value of key value pair in jqgrid
my json
{
"details": [
{
"_id": "5837e810475cf512ae37e563",
"course": {
"_id": "5837e7f8475cf512ae37e561",
"...
0
votes
0answers
10 views
How to edit article in mongoose and nodejs
I'm trying to create a blog with nodejs. I can upload file and data in to mongoose sucessful. My problem is: I can't edit the data.
router.post('/admin/create-article',upload.any(), function(req,...
2
votes
0answers
8 views
Protractor with typescript cannot find module 'protractor' after successfully resolved
This problem is killing me. Please help.
I have following file structure:
node_modules
protractor
typescript
package.json
register-popup.ts
The content of package.json
{
"name": "...
0
votes
0answers
5 views
$httpBackend: Unit test with encoded URL
I testing my angular code through unit-test suits. For testing I am using Jasmine as test framework and angular.mock for mocking. I am using $httpBackend to fake $http. I have one factory named as ...
0
votes
2answers
25 views
How to let the angularjs controller run only once even many ng-controllers defined in DOM?
I wish I can handle this, but in the bad way...namely I need to use $cookieStore to check either the function called or not.
Every time to use push array then I need to use $cookieStore. But it ...
0
votes
0answers
6 views
Scroll behavior like native apps on desktop
I'm currently developing an angularJS webapp tablet first. For better userexperience I would like to scroll my parent container with my mouse like I could scroll on touch devices.
Does anyone know a ...
0
votes
2answers
16 views
Is there a way to call Angular Controller function from Javascript written inside <Script> tag in the HTML Page
We are working on an application which is functional on angularjs but we decided to use Syncfusion toolbar . We decided to go with Javascript ribbon which is responsive as we had angular option as ...
1
vote
1answer
31 views
set headers while submitting a form data [duplicate]
If i do ajax call for form submit i can set header before sending request to server. But lets say i am hitting an action "url" to send data to server. In that case how to set any header for that ...
1
vote
3answers
48 views
Using the length function returns undefined
I'm trying to check if my variable only has a length of one.
I do this like so:
var n = new Date();
$scope.h = n.getHours();
$scope.m = n.getMinutes();
console.log($scope.h.length) // returns ...
-1
votes
1answer
21 views
Simplest Angular js timepicker pop up
Hello All Can Anybody suggest me a simple timepicker popup for angular js,
I tried
Following timepicker
http://embed.plnkr.co/2ReOvuuhtNNcgtmWycOt/
http://www.mytechtip.com/2014/03/angularjs-timepiker-...
0
votes
3answers
18 views
How to pass data from one HTML page to another using factory or directive in angularjs?
I am trying to pass the data from one html to another html page after clicking on particular table row but unable to send the data.
0
votes
3answers
33 views
Reload data after modal gets closed in angularJS
-->html code
<button type="button" class="btn btn-primary" ng-click="platformAppConfigurationCreate()">
<span class="fa fa-plus"></span&...
1
vote
0answers
12 views
Angular ng tags-input key-property should be id/name on a dropdown selection not working
Suppose there are two dropdowns, one is a normal dropdown and the other is tags-input. Now I want to set the key property of tags-input based on the normal dropdown. When a user selects normal ...
-8
votes
0answers
32 views
Convert jquery code into angularjs [on hold]
Can anyone please help me to convert the following jquery code into angularjs, So here I'm trying to make a bootstrap tabs to auto rotate carousel using jquery. but don't know how to write this code ...
0
votes
2answers
29 views
promise is not returning to defer in AngularJs
Function is being executed but its not returning the userType value to defer. hence navigating to default page.
I have two login type say manager admin, based on the response from UI page it should ...
1
vote
2answers
27 views
Not receiving byte array data on server side by using ajax
Hello Everyone I am using angularjs to send byte array on server side but I am not getting data on server side.
Here is my code.
$scope.Upload = function () {
var bytesToSend = [253, 0, 128, 1]
...
3
votes
4answers
30 views
calling a function from within angular watch
How can I call a function in my controller from inside a $scope.watch function?
I try something like this, but that doesn't work
$scope.$watch(function(){return self.user}, function (newVal, oldVal, ...
0
votes
0answers
6 views
OnsenUI with Angular - Loading issue in Windows
OnsenUI2 Windows Bugs
I am new to OnsenUI2, We created one application using OnsenUI2 Angularjs. The app is working properly in Android and IOS but in Windows, we are facing the below issue.
...
0
votes
0answers
13 views
ngMask showing error on injecting as a dependency
I'm using angular 1.5 and typescript for my project.
I want to use ngMask (https://github.com/candreoliveira/ngMask) in my app.
I installed it using bower, and then added the dependency. Since I dont ...
0
votes
0answers
19 views
Opening a dialog box from another dialog box in angularjs mdDialog box?
I have a controller which opens a HTML template through mdDialog. The code used for the controller is:
'use strict';
angular.module('PayToAccount',['ngMaterial', 'ngMessages','material....
1
vote
1answer
23 views
Get module name and its all dependencies list in angularjs
I want to get module name and all dependencies list that is injected in application module.
Like :
var app = angular.module( 'wp', ['ngRoute', 'abc', 'xyz'] );
So from this i want to get all this ...
0
votes
0answers
9 views
Handle Exception of a service in jasmine unit test cases for Directives
[1] How can I handle exception in my directive unit test where there is a method in service and I need to handle exception for that method?
[2] How can I test model popup on click in directive?
-2
votes
0answers
19 views
require is not defined in gulp
Hi I have to compress my more js files by using gulp.in my application i am using ng-route angularjs. I tried but i didn't get output. it show require is not defined error. please help me to compress ...
0
votes
0answers
7 views
Mapillary-JS, typescript definition, how to use with angular based mapboxgl project?
I try to use the mapillary-js in my angular2 based mapbox GL-JS project. However, the import typescript causes a lot of conflictions with the existing libraries. I want to import { View } from '...
0
votes
1answer
25 views
Date search filter is not working in angular js
I am new to angular js.
I am trying to implement date custom filter using date picker .
I have tried it , but I am not getting any idea to work out.
Below is my code.
<div class="col-sm-2 m-b-xs"...
0
votes
0answers
7 views
How to connect graphql with angular js using apollo client
I am trying to build a simple blog with graphql and angular js.I'm done with graphql part.Now I'm able to query a database using graphql.Now I want to show the items that I've queried in a Html page....
0
votes
0answers
11 views
mongoose store variable from outside the Angular $scope
I am trying to build Mean stack app for road trip management.
i got 2 schemas in mongo DB.
User schema contains details for the users
var userSchema = mongoose.Schema({
username:{
type: ...
0
votes
0answers
27 views
Display page wise results in angular
I am building an app to fetch and display Employees details page-wise.
So the backend sends results pagewise depending on the page number and page size requested.
Is there any way to display page-...
0
votes
2answers
19 views
arrow functions and logging json response to console
I call my service and it hits an API and returns a json object. I log the object to console to view the structure of the json object and make sure it returns the data i want.
var promise = ...
1
vote
1answer
20 views
ng-bind-html renders data as HTML but ignores children elements
I'm working on this function that generates HTML based on user input and I can render it as proper HTML inside a list item (instead of a string version) using ng-bind-as-html.
The only problem is ...
-1
votes
1answer
36 views
Dynamically Adding Similar Objects
I'm trying to push similar objects into an array and in each object I'm pushing some values, but the values updated are reflecting in all objects. I want to add only three values from the foo array ...
0
votes
0answers
14 views
Ionic Change Default Drop Down Design
I have the following code:
<label class="item item-input item-select">
Country
<select ng-options="country.name for country in countries" ng-model="country" ng-change="update(country)" &...
0
votes
0answers
8 views
NavBar links not updating on redirect
I am having a navigation bar directive which should produce the links depending on route (different for admin panel for example).
It all works fine when I am writing the address manually, but when I ...
0
votes
1answer
31 views
angularjs get correct format data from service
I am trying to read values from json through angular and display data on UI. I am unable to do that because the format which I get to UI is not an array. When I added to console and see the format it ...
0
votes
1answer
11 views
Get clicked option in multiple oi.select angularjs
<oi-select class="oi-select"
oi-options="student.name for student in students track by student._id"
multiple placeholder="" ng-model="class.students" ng-change="clickedName()">
...
1
vote
1answer
26 views
Can't bind promise data to view in angularjs
I have tried the examples found on stackoverflow, but I still getting nothing in my view. I can see the articleIds in the console but nothing in the view. Thanks you in advance for your help.
Here ...
0
votes
0answers
21 views
how to redirect to login page if not authentificated angularjs
first time for me use angularjs, i dont know how to redirect login page if not authenticated, if not authenticated user cant access "users" page and "menu_utama" on my state.
app.js
(function() {
'...