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.
-1
votes
0answers
5 views
is there any way to implement **hashtag** with **Autocomplete** using **Angularjs**?
is there any way to implement hashtag with Autocomplete using Angularjs?
i.e. suppose I enter only #,it will show all the hashtags in autocomplete .
if I enter #s,it will show all the tags starting ...
0
votes
0answers
4 views
Infinity scroll with angularjs spring mvc
This controller return list of invoices(model.addAttribute("invoices", invoiceService.getAllInvoices(user.getId()))) then redirect to invoices jsp page (Method ...
0
votes
0answers
7 views
unit test a directive that uses a template url and service
I have a directive that uses a service. I would like to know how I can test the directive using Jasmine unit tests. How can I mock the service in the directive unit tests. Thanks in advance.
The ...
0
votes
0answers
8 views
Conditional rendering in AngularJS not working as expected
I am writing code for a webapp in AngularJS. In this I am using dynamic conditional rendering multiple times using ng-if and ng-show. I studied a bit on the difference between them and recommended ...
0
votes
0answers
5 views
Angular: Why Won't Model Update Outside Of View In Same Controller?
I have found a number of posts talking about models/views not updating, but I still can't figure this out. I'm new to Angular, btw so I suspect this is noob issue.
I have the below Angular app.
When ...
1
vote
0answers
3 views
How to make angular ajax call synchronous?
var SaveIdeaEvaluationForm = function (evaluationForm, ideaId, stageId, isEvaluated) {
return $http({
url: SparkApp.FormEvaluation.SaveIdeaEvaluationForm,
...
0
votes
0answers
5 views
How to filter data in UIGRID if data is mapped using celltemplate
we are using UI GRID to display data and we are using celltemplate in one column to filter data from ID to employee and we have enabled filters for every column.
sampledata:{ID:1 ...
0
votes
0answers
7 views
Angular UI Select not showing up the selected element in dropdown (IE 11)
I am having issue with the dropdown populated using UI select not able to show the element which had been selected earlier. This issue is only coming in IE11, I tried checking the same with the ...
0
votes
0answers
15 views
directive only works after inserting an irrelevant snippet
I used Angular directive to show dropdown option with ajax data
It didn't show at all although the DOM is loaded, I guess it's a problem between bootstrap, jQuery, and Angular.
DEMO page is here ...
0
votes
0answers
4 views
Error while running angularJS unit test case in Karma-Jasmine
**MainCtrl.js**
var app = angular.module('mailApp');
app.controller('MainCtrl', ['$scope','$http',function($scope,$http) {
$scope.sortType = 'date'; // set the default sort type
...
0
votes
0answers
12 views
Connect to particular API based on environment
I have an AngularJS application that talks to a NodeJS backend. I have recently just hard-coded in the API address in my front-end as there has only been one environment (i.e. my development ...
0
votes
0answers
6 views
ngTable Only Sorts/Filters With data not getData
I'm using ng-table 0.8.3. If I use the getData, as shown below, everything shows up but it can not be sorted/filtered. If I change it to data and have it fetch staticContracts directly then everything ...
0
votes
0answers
11 views
Difference of communication between @Directive vs @component Angular 2.0 [duplicate]
What is the difference between a component and directive in angular2 .Both have a set of html template attached to it. And a set of controller or function which handles the functionality.
What are ...
0
votes
2answers
23 views
ngRepeat:dupes Duplicate Key in Repeater using an Array named "name'. With other name it's work
Here is the problem, when tha variable is named 'name', the error 'dupes Duplicate Key in Repeater' appear!
But, why!? Here is the code:
app.js
var galleryModule = angular.module ...
0
votes
1answer
13 views
AngularJS - How to handle URL's that return the component?
I am using Codeigniter.
controllers/Pages.php:
public function index()
{
$this->load->view('pages/index.php');
}
public function indexContent()
{
...
-1
votes
0answers
13 views
Offline application code duplication
I'm maintaining an offline application and facing some hard time & mistakes when testing/bugs/refactor or just little code additions
And let you imagine when a new developer come to the party!
...
0
votes
0answers
2 views
Problems installing ng-cordova. Cordova-plugin-geolocation.PositionError not found?
I'm not really used to installing plugins but I followed the guide on the website to the letter in installing ng-cordova on an ionic app.
1º downloaded the lib
2º Added it to the index, before ...
0
votes
2answers
29 views
Better Searching With Angular
I have built an angular app which searches through a load of objects.
The problem is that the search filters match any part of the string returning irrelevant searches.
for example.
If I search the ...
-1
votes
0answers
15 views
Append a string in URL without route change in AngularJS
I have a requirement wherein when the user clicks on a tab(lets say 4 tabs), A string will be appended on the URL.
For example:
User clicks on Versions Tab:
Current State: ...
0
votes
1answer
25 views
ng-repeat behaving unexpectedly and and ng-true-value and ng-false-value not working correclty
html
<div class="form-inline col-xs-12" ng-repeat="c in evnetChannels track by $index">
<label class="control-label col-xs-6">
<input type="checkbox"
...
0
votes
1answer
16 views
$http put v create - what is the difference between the data object returned from .success() in each (JavaScript)
Is there a fundamental difference between "data" variable returned from .success() in $http.create v $http.put ?
I've added "console.log(data)" to 2 different functions below (and included the Rails ...
0
votes
0answers
5 views
Karma jasmine testing for controllers
I have a controller defined inside $stateProvider.state for which i am writing some unit tests. The issue is this controller is not defined with a name and i am not able to access it.
Controller ...
0
votes
2answers
29 views
AngularJS Function with ng-if inside ng-repeat
I have some times that are calculated dynamically and repeat in an ng-repeat like so:
<div class="col-sm-4" ng-repeat="time in scheduling.openTimes">
<label class="label label-default ...
0
votes
2answers
36 views
How to get selected value from table using Angular.js
I need one help.I need some selected value using check box select using Angular.js.I am explaining my code below.
<tr dir-paginate="pro in listOfReview | itemsPerPage:5">
...
0
votes
0answers
4 views
reddit oauth2 and satellizer :: “invalid redirect_uri parameter”
I am using the Satellizer authentication package for AngularJS to handle my reddit oauth2. Here is the redirect url that I am passing from satellizer.
...
-1
votes
0answers
28 views
“TypeError: f is not a function” after updating Angular to latest version
I'm seeing the following error in my debugger after updating Angular from 1.3.2 to 1.5.0. As far as I can see everything is still working, but this didn't happen in version 1.3.2.
It seems to be ...
0
votes
1answer
13 views
How should I make sure the user accessing a front-end route is authenticated?
I'm using Laravel and Angular to write a web app.
In the front end Laravel is used to create the basic template, but otherwise controlled by Angular. In the back end laravel is used to create a ...
0
votes
1answer
12 views
Angularjs ui grid has poor resolution on ipad
I am using angular-ui-grid (http://ui-grid.info/). Version 3.1.1.
When it is displayed on the computer screen, it displays clearly. When I load it on the ipad it looks blurry. I think it is something ...
0
votes
0answers
21 views
When using ngRepeat track by dont update DOM on move
For my particular application, I want to be able to use an ng-repeat on a custom directive and track by a property of the object.
The problem I'm running into is that I am intentionally not wanting ...
0
votes
1answer
13 views
Where to wrap third party plugins in AngularJS?
I am new to Angular and I understand one of its 'rules' is that no DOM manipulation should exist in the controller. I have heard that a lot of people starting out with Angular dont completely ...
0
votes
0answers
5 views
$cordovaImagePicker not working for Ionic-Framework
I am having issues getting the Image Picker ngCordova plugin working in my ionic app. Every time I call the function getPictures() in android (on my device and in the emulator) the app will crash. The ...
0
votes
2answers
30 views
How to fill select from Json file in angular
I'm quite new with Angular,and I'm facing some problems when trying to bind values of a Json file into a select form.I've read lot of solutions and I used all of them but I don't know why it does not ...
3
votes
0answers
22 views
HTTP Transform request in Angular 2
I am attempting to add a single parameter to all my web requests so that caching is forcibly disabled. All I want to do is add
?v=1535DC9D930 // Current timestamp in hex
to the end of every ...
-1
votes
0answers
14 views
What are the things to be taken care of to build a high performant web app on MEAN?
Where can I learn about building a high performant web application using MEAN stack. Especially, from code perspective and not improving or tuning server.
Thanks.
0
votes
1answer
14 views
How to use nested view objects with ui-router (angular)
I apologize in advance, I am not an angular expert. I am trying to render a series of views on a user profile page using ui-router. Here are my routes currently:
(function() {
'use strict';
angular
...
0
votes
0answers
8 views
unable to run video through VideoJS in my angular app
I am trying to run video through tag through VideoJS in Angular App.
Unfortunately, I'd have to run the video through the following HTML code as my Angular code is pulling HTML through some external ...
0
votes
1answer
7 views
angular-php api not found after minification
I scaffolded a basic angular-php yeoman app to try it out.
angular-php
When I run grunt serve it works as expected and pulls some data using rest using $http.get('/api/features')....
When I minifiy ...
2
votes
2answers
35 views
Find closest element in AngularJS
I want to slide toggle closest .contactDetails when a is clicked. Below is my code which does not work.
<ul>
<li ng-repeat="detail in details">
<div>
<a ...
4
votes
1answer
22 views
Django REST, uploaded image has null value
I have simple app with Django REST and Angular on frontend and I have problem with image upload.
my model:
class Photo(models.Model):
img = models.ImageField(upload_to='photos/', ...
0
votes
0answers
5 views
Get data from MYSQL stored procedure with Express, node and angular JS
I have issue when getting data from getting MYSQL stored procedure with Express 4, node and angular JS.
TypeError: Cannot read property 'query' of undefined
at r.$scope.getInfo ...
0
votes
2answers
36 views
AngularJS : How do access parent controller's scope item from the child directive?
My html view as below
School.html
<html>
<body>
<div class="col-xs-9">
<!-- major bootstrap html code goes over here -->
</div>
<div ...
1
vote
1answer
22 views
angular promise not resolving correctly
I'm working on getting a promise to resolve after a Firebase query. Essentially I want to get all of the specified keys from a table and then loop through another table in order to get the artwork I ...
0
votes
0answers
16 views
My own CSS vs Angular Material CSS
I'm trying to add my own class and to modify the padding the following code with my external style.css but every single time angular-material overwrites my code & I don't want to use ...
0
votes
0answers
13 views
storing async data into angularjs service
I'm setting scope values within controller after I read the json values asynchronously and also want to save it in service in angularjs as an associative array. Within the service, I get "Cannot set ...
0
votes
0answers
12 views
Map options doesn't apply when reopening state in angular / ionic
I have a map in an ionic app that shows a route between user's current location and a predefined location received from server.
It all works fine on the first try.
But when i change the state to ...
0
votes
0answers
5 views
Deploy Angularjs 1.5.X on JBoss App server
Can Angularjs 1.5.X App directly deployed onto application server like JBoss 6.x. I have deployed Angularjs apps on Nginx, but I was wondering if AngularJS can be deployed to listen on different port ...
0
votes
0answers
10 views
routeProvider not loading new views
I have my config as follows:
app.config(['$locationProvider', '$routeProvider',function ($locationProvider, $routeProvider) {
$locationProvider.html5Mode({
enabled: true,
requireBase: false
...
0
votes
2answers
14 views
how to prevent delete and add in all sections - AngularJS
I have a problem when adding several sections and within each section attempt to add other questions, but these are added in all sections. I hope someone can help.
code here: http://goo.gl/XQas0x
0
votes
1answer
11 views
Dynamic grid using Angularjs
I have my code in different layers:
1. A factory that contains all of my $http request, and return the promise.
2. A controller that handles that promise with a then, to a assign it to a $scope ...
0
votes
0answers
7 views
Layout-align in md-grid-tile not working for me
I have this example:
http://codepen.io/anon/pen/YqqdYR
I want to basically separate the divs, so that they are evenly spaced inside the md-grid-tile. I am trying to follow this reference: ...