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
9 views
Angularjs + Django Real time application
I am using DRF django rest framework ( http://www.django-rest-framework.org/ ), with angular as front-end , I am require to get real time data ,like nodejs allows socket.io to implement real time ...
1
vote
0answers
12 views
Problems with ng-repeat and custom directive
everyone!
I'm an angular newbie that is going crazy with an apparently simple issue. I'm creating a directive that is nothing more than an "ul/li" that can become big. I want this directive to be ...
0
votes
0answers
7 views
angular validation linking checkbox and dropdown
Im a newbie in angular.I want to do a validation for page which has a checkbox adjacent to a dropdown from which we can select values.If the checkbox is clicked and the values are not selected from ...
0
votes
1answer
10 views
How pass dynamic values to ProgressBar and bellow message based number forms completed?
I am displaying progress bar, progress bar status message bellow by passing static values, how can pass dynamic values to progress bar and bellow progress bar i need show progress bar status message ...
0
votes
2answers
12 views
Can we use client-side angularjs routing using ui router with expressjs server side routing in nodejs. Below is the example
Example:
var bodyparser=require('body-parser');
var fs=require('fs');
var express=require("express");
var myApp = express();
var MongoClient=require('mongodb').MongoClient;
var assert=require('assert'...
0
votes
3answers
27 views
angular : $scope is not reading values from HTML
I have this code where I am expecting some data from the View/HTML but the variable $scope.cityName is undefined.
app.controller("citycontroller", function ($scope, cityfactory) {
$scope....
-2
votes
1answer
19 views
The best table Angular
Which one is the best table for Angular2, especially for remote paging and sorting?
-2
votes
1answer
17 views
Javascript/Jquery - Convert a deeply nested JSON string to JS object
I have a complex and deeply nested JSON string (which also might have some malformed JSON strings). I need to convert this to JS object and then need to display it as a table using Angular ng-repeat.
...
0
votes
1answer
10 views
angular js ui-grid double click on row not working
I want to call a function myFunc on doubleclick of ui-grid row.
for that I have used
<ng-dblclick="grid.appScope.myFunc()">
but it is not being called and showing no error.
here is the ...
0
votes
0answers
10 views
Why are my bundled files not working in ASP.Net MVC Core?
I have bundled all of my files by selecting them (in the order I load them in my layout file), right clicking and choosing "Bundle & Minifier" -> "Bundle and Minify files.
Now my layout file has ...
0
votes
0answers
8 views
Not able to deploy node app on heroku
I am new to deploying node apps on heroku.
I have made a web app in nodejs and angular using gulp. When I run heroku local web it works fine but when i deploy it and try to run it returns:-
Cannot ...
0
votes
0answers
5 views
load ng-include from content script element creation
I wish to load a template inside an ng-include from my content script.
here is what I have:
file structure
app/
--app/app.js
--app/form.html
js/
--js/background.js
--js/content.js
content.js
...
0
votes
0answers
11 views
Sending user credentials via angular $http to Flask backend
I am strugling with little problem. I'am creating little project with user authentication. This is my flask code for LOGIN:
@app.route('/api/login', methods=['GET', 'POST'])
def login():
...
0
votes
1answer
19 views
$OnChange doesn't trigger when pass object by reference
Hey I have the following example which demonstrate a problem which I faced in bigger scale.
I have in my example: 2 components: Parent Component and Child Component.
I have a field of rules which is ...
0
votes
0answers
8 views
Show single options dialog in ionic Phonegap app
I want to make the same as the image below
A native single options. I made it with the following code:
So when the user clicks on the option the dialog appears and the user can select an ...
1
vote
0answers
14 views
angular hybrid app routing is not working, router outlet is always considered root
I am trying to migrate to angular 2, currently I am trying to make my app hybrid to be able to use both angular 1 and 2 , currently I am struggling with routing, I managed to get bother router in ...
0
votes
0answers
11 views
Firebase - Error: permission_denied at /:
I'm a bit confused as to why I'm unable to access data from my request_support table in Firebase.
I want only a specific user to have read access to request_support data and also have write access ...
-2
votes
1answer
28 views
Unable to access json data in angularjs array
I've successfully returned a json object which has query results from database. I'm unable to access the returned json one by one.
Here's what the console.log shows:
Angular code:
$scope.peopleList=...
-1
votes
1answer
18 views
How add authentication to GET method angular
I have trouble passing the authorization token to the get method.
I do not know what I'm doing wrong. What should I add to be able to download the data ? What data do you need?
This is my view:
&...
0
votes
0answers
14 views
Tree shaking for Angular 2.x+ modules?
I don't know what I'm asking would still be called tree-shaking, but suppose I have two modules:
CoreModule: {
declarations: [Component_One, Component_Two, Component_Three],
exports: [...
2
votes
2answers
24 views
Bootstrap thumbnails maintaining height with angular-vertilize
I am having an ng-repeat that loops on items to display them in bootstrap thumbnails.
Since data is dynamic, I used angular-vertilize module to give the same height to the thumbnails.
<div ...
0
votes
0answers
8 views
Travis ci build fails at bower install while pull request
While working on an angularjs project ,bower install works perfectly from terminal(I use proxy so I have to edit .bowerrc file accordingly though).But when I create a pull request on github ,merging ...
1
vote
1answer
12 views
ui-validate doesn't get called
I have an input element (actually a datepicker) with the following attribute:
ui-validate="{ customValidation: 'validateDate(vm.dob)' }"
In my javascript I have the following method on my scope:
$...
0
votes
1answer
16 views
angular 2 ng-bootstrap type ahead component - Can't bind to 'ngModel'
I'm trying to add the type-ahead http example to my project (ng-bootstrap). I have simply copied over the typeahead-http html and typescript file. I then changed my app.module.ts to include the type ...
0
votes
0answers
25 views
Pass data with ng-click
I have the following contentString for a infowindow for google maps. I'm having a hard time figuring out something I'm sure its simple, but I cant seem to be able to send data with my clickTest ...
1
vote
1answer
34 views
Block http request on AngularJS
I guess similar questions were asked about this issue but I couldn't find the answer I am looking for.
I have the following code
$http.get('/admin/data').then(function(response) {
$scope....
1
vote
1answer
20 views
angularJs get blob type
I have webApi return me a blob file that I have to display.
how can I know what type is the blob that I got? It could be anything, pdf, doc, jpeg etc.
$http({ method: 'GET', url: (itemsUrl), ...
1
vote
1answer
43 views
`Object` vs `extend` in js console
I couldn't find any clear answer, so what's the difference between Objecttype and extend type in JavaScript?
In AngularJS, when I consoled $state:
console.log($state)
console.log($state.$current....
-4
votes
0answers
16 views
AngularJS PHP code to Populate dropdown from database and show corresponding image [on hold]
I need Angular.JS, ChosenJS, PHP and MySQL code to populate Chosen dropdown list from MYSQL and when selected display corresponding Image.
0
votes
0answers
20 views
Testing then and catch from a promise in angular
I would like to test my then and catch function from my $scope.customerinfo. The problem is i dont know how exactly.
var app = angular.module('shop', ['ngRoute','ngResource'])
.factory('...
2
votes
2answers
29 views
Multi filter using select and show the result on table
I have this simple table and want to filter it with multiple select in order to show the result with multiple filters such as Type: Top and Low.
I tried some libraries such as Select UI but I didn’t ...
1
vote
1answer
23 views
angularjs > router resolve > “Error: [$injector:unpr] Unknown provider”
im trying to add a resolve\promise to my project, so when you ask for a page it will load up only after receiving the json from the server.
this is my js code:
'use strict';
angular.module('myApp....
1
vote
0answers
6 views
The linkage of two highcharts-ng in ionic
I hope that when I zoom $scope.chart1, $scope.chart.options.chart.type will be changed like $scope.removeRandomSeries. But no matter what I do (more details in $scope.chart1.options.chart.events....
-1
votes
1answer
15 views
Jquery Dialog not working on image click
Workflow:
Passing JSON to angular scope and using ng-repeat in the View to display it.
Using following function to show dialog on click of elements of a particular class.
$(function () {
$("...
0
votes
1answer
21 views
angular js don‘t work with select element's options
Please help me, cant do select option in drop box for sorting data using angularjs. I tried it with buttons, it working but only with double click. I want to get it working with select options.
JS:
...
0
votes
1answer
23 views
After angular 4 release, how to create specific angular 2.4 version app using angular cli
Angular 4 has released, I want to learn angular 2 first. For that i tried to use angular CLI, but when i create new app using
ng new test-app
It creates the app the angular 4 version. Which command ...
0
votes
1answer
18 views
Unsupported media type ASP.NET Core Web API
On the front-end i use Angular to collect som data from the form and send it to my server-side controllers. As the image shows below, i get the data ($scope.newData) on my controller and service, but ...
0
votes
0answers
27 views
Since updated angular 2 version, requests are getting cancelled
So since I updated angular 2 and more few packages by npm,
some of my requests are just getting cancelled if I send multiple request at the same time, for example if have loop of some groups,
and I ...
0
votes
1answer
11 views
Facebook notification drop-down by angular
i'm trying to make notification drop-down like facebook , when the notification is unread the there's a status that's unread is true or false so i want to make the background color of this ...
0
votes
0answers
18 views
How to find an property/directive added inside html tag of aem?
I am working on an AEM+angularjs existing project coded by some other team. I am trying to understand their code. But, I am unable to find a property added to the html element.
<html data-sly-...
0
votes
0answers
14 views
Angular - jQuery Syntax Highlighter not working for nested view
I have an angular application and it working well. In on my nested views, I would like to display javascript source code. I found this tuto that is working on normal views, but When I try to implement ...
0
votes
0answers
8 views
Angular 2 keyframe animation with properties with hyphens
I am trying to re-create this animation on my component: https://github.com/daneden/animate.css/blob/master/source/zooming_exits/zoomOutUp.css
I can't find any examples of using easing on keyframes. ...
0
votes
1answer
16 views
Angular Material slider direction issues
I have an angular material slider that needs to reside inside a div with a dir="rtl" style. However, when ever I add the dir="rtl" tag the slider is getting all messed up (the mouse isn't capturing it ...
0
votes
0answers
28 views
Getting CORS error When Using Spotify Open APIs
I'm getting CORS error while trying to get some data through Spotify's Open APIs such as API/v1/search?type=album&q=... and API/v1/albums/{id} in a Simple Angular 4 Application that searches for ...
1
vote
1answer
44 views
Angular Material with Angular 4
Is there any options to use Angular Material with new Angular 4?
Official material.angularjs.org says:
Blockquote Angular Material recently released Version 1 which we consider to be stable and ...
0
votes
0answers
31 views
AngularJS : angular-ui-router redirects to $urlRouterProvider.otherwise path When I refresh the page
I've an SPA with rails api on backend and angular as front-end framework.
I'm using stateProviders,
$urlRouterProvider for managing states in my SPA I'm facing a small problem with ui-router. ...
0
votes
1answer
34 views
Angularjs 'indexOf' of undefined?
I think $scope.tutor.noiday is an array, but i don't understand why i got that error. Please help me.
This my error
here is my code controller.js
$scope.daytai = ['Tutor house', 'Student house',...
0
votes
0answers
15 views
Get error from pending request - php and angular
I am using angular with php as a server.
when i go to db config and change the ip I simulate a lost db connection
in the angular i have timer with request in 500ms . but the request is pending.
is ...
0
votes
1answer
15 views
Jasmine unit test module is not defined
I am currently busy with jasmine unit testing Angular.
I have put this unit test in test.js
describe('The countInput filter', function(){
var $filter;
beforeEach(function(){
module('...
-3
votes
0answers
20 views
images slide show showing the images with more than one image in the div [on hold]
Image slide show with four or more with click hide the image from the left and show anothe image form the right using angualr js
I want this type link the link below
https://i.stack.imgur.com/...