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.
0
votes
0answers
12 views
some angular material content does not show using angular-route
i am new to angular js and angular material. i am working on web form app consist of 4 steps(view) i am using $route provider to switch between views however in first step only show content outside ...
1
vote
0answers
14 views
AngularJS $watch not working in if-block
I figured out, that my angular script is working:
$scope.CurrentUser = null;
$scope.DatePicker = new Date();
$scope.$watch('DatePicker', function (newValue, oldValue) {
if (newValue > new ...
3
votes
3answers
24 views
How to test the existence of an attribute in a directive?
I want to enable a button based on whether there's the atribute editable in the directive:
Editable:
<table-list items="users" editable></table-list>
Non-editable:
<table-list ...
0
votes
0answers
4 views
Limit the dynamic markers to one
In the below plunker, i can add so many markers by selecting marker tool. But i need to limit it to only one. after adding one marker it should disable or the user should not be able to put another ...
0
votes
0answers
18 views
Angular Isolated Scope for multiselect list
I'm currently trying to find a nice solution for allowing users a multi-select list. I found a great code-pen that illustrated what I want to use with the ionic framework.
...
0
votes
1answer
16 views
How to speed up large JSON parse and select in Rails?
I have a large JSON file with customer contacts, approximately 3.5MB size and ~26k entries. The objects included have only :id, :name, :email, :account_id. I am using Rails as a backend API and ...
0
votes
1answer
21 views
calling controller function from link function
I am trying to call a function in controller from link function. From controller function, I have to call a rest service call. (I tried calling rest service from link function , But I didn't get ...
0
votes
1answer
18 views
how to add drop down on header using grid (not input field)?
I am trying to use Ui-grid from this link
http://ui-grid.info/docs/#/tutorial/101_intro.
I make a simple example of ui-grid in plunker..I need to add select box on "Gender" as filter .If I select ...
0
votes
2answers
33 views
Show hide in angularJS if not empty
I have these two images
<img ng-show="cat1.PictureURIs[0].URI" src="{{cat1.PictureURIs[0].URI}}" />
<img ng-hide="cat1.PictureURIs[0].URI" src="/assets/img/placeholder.png">
Problem: If ...
0
votes
0answers
15 views
Bootstrap.js not recognizing offsetWidth when reloading image src with Angular
I'm just getting starting with Angular, so everything is still a bit new to me.
What's happening right now is that this works in the sense that my HTML gets changed when I switch categories on my ...
0
votes
0answers
22 views
Angular vs Ember, Which is beter for enterprise web application [on hold]
I really confused to decide which one of the Angular.js or Ember.js is better for an enterprise web application.
after many search and study i reach to the point that
angular is more simple than ...
0
votes
0answers
7 views
PDF Viewer with Editing Canvas in PhoneGap
I need to implement a PDF Viewer that opens PDF files and also provides edit options like adding shapes, pencil drawings using a canvas on the PDF. The edits along with the PDF should be saved as ...
0
votes
1answer
30 views
AngularJS REST Call Error
In my project I have one json files, One I deployed in the Local Machine/Server and other I deployed in the another server.
Here is my code for calling the json data from angular controller -
...
0
votes
2answers
21 views
How to append to a json object to existing json in angular js
How to append to a json object to existing json in angular js
I am having an object like this
$scope.object1 = {
data1: 'abc',
data2: 1
};
$scope.object2 = {
data3:"One",
...
0
votes
1answer
15 views
if i upload image,'no files selected' message is showing up
I am using following HTML code for file upload
<input type="file" nv-file-select="" ng-accept="'*.gif,*.jpg,*.png,*.jpeg'" filters="queueLimit" multiple="" uploader="images">
After uploading ...
-2
votes
0answers
17 views
How to get the data from one .js files to another through angularjs
I am new to angularjs and i am trying this first time.
I am having two .html page and and two .js files included in each page for example test1.html includes test1.js and test2.html includes ...
2
votes
0answers
14 views
Does RequireJS loads previously loaded files (.Js or .html) from cache?
I am using requireJs in my app. I face a scenario and I want to clear it out.
I'm loading the particular template (views) and their dependent js files based on location url or routes. See Following ...
1
vote
1answer
11 views
changing an image into another image and then resets back to default image when another different image is clicked in angularjs
How will I change my image and the roll it back to default image when I click another image using angularjs? I am new to angular and here is my code
<div ng-controller="SwapControl">
...
0
votes
1answer
30 views
How to save each and every form input button actions into json file using eihter javascript or jquery or angularjs?
I wanted to save my all form inputs, each and every button action(for ng-clicked and non-ng-clicked including file uploads/urls, etc i.e. whatever I click, those values should be stored in json ...
-1
votes
0answers
6 views
Scrolling the page while dragging Using ngDraggable in ionicframwork
I am creating an app which uses ngDraggable to drag an element. But some part of the drop div is out side the current view which is available only when scroll. so my issue is that it can't be ...
0
votes
1answer
30 views
Loading One Controller Per View AngularJS
I have an Spring + AngularJS Web Application with the following angular file structure.
mainmodule.js - where all config and routing's are
controller1.js
controller2.js
my main page is home.jsp ...
0
votes
1answer
12 views
Kendo UI dropdown not updating angular scope
I have 2 kendo UI drop downs. Change the first dropdown updates the items in the second dropdown - think state and county drop downs.
Here's a dojo showing the working behavior:
...
3
votes
0answers
15 views
JQuery: JQuery timepicker not working in Safari. Works well in Chrome
JQuery Timepicker (timepicker.co) does not work in Safari.
Works well in chrome on MAC.
JQuery version : 1.11.3
0
votes
0answers
11 views
How to load more than one street view map in HTML Page?
I am trying to load google street view maps in angular using ng-map module. I am able to load one street view at a time if i'm trying to load more than one street views i'm getting error that one map ...
0
votes
0answers
31 views
AngularJS - ng-class not working inside directive
I need to build a recursive menu, click on the decision based on the results of the style show, but ng-class does not work properly,please guide me why?
<li ng-repeat="item in item.subMenu" ...
1
vote
2answers
18 views
ng-show/ng-if doesn't update dom height immediately
I have a long div which is hide/show by ng-hide.
here is a sample based on ionic demo.
Click the button to make the longDiv show or hide. If you try to scroll the page immediately after hiding or ...
-2
votes
0answers
9 views
Ionic framework - indexOf undefined
Ionic framework Error - indexOf undefined
Error happened [TypeError: Cannot read property 'indexOf' of undefined]
TypeError: Cannot read property 'indexOf' of undefined
at ...
0
votes
0answers
39 views
Ajax Success Event is not working while passing the data to controller in mvc4?
Hi I have 6 fields in my view. I need to save those six field in Same Column not in the same cell.The format of saving those 6 fields in table is shown below.
MyView
Need to save the Format
So i ...
1
vote
0answers
21 views
Express app.post getting called multiple times
I have been building a youtube video conversion app which streams youtube videos using youtube-dl and saves them, everything was working fine until I attempted to stream a video that was over an hour ...
0
votes
1answer
24 views
Fetch and loop over unknown objects in AngularJS
I've been working on generics in ASP.NET MVC for quite some time, and I've thought about generics on other languages, particularly in AngularJS.
Suppose I have 2 sample endpoints:
...
0
votes
2answers
24 views
how to change the header text of table in angular?
I am trying to learn Ui-grid from this link
http://ui-grid.info/docs/#/tutorial/101_intro.
I make a simple example of ui-grid in plunker..Actually the table header takes first object property name ...
1
vote
2answers
32 views
AngularJs - `$http` works But `$resource` not working - how to apply `$http` params to `$resource`
I am trying to post the image informations to back-end. I tried with $resource but not working. But when i tried with $http it seems that works. But i have added some of additiona params to $http - ...
1
vote
1answer
26 views
Why can't I get the $sceProvider?
I'm trying to create a filter using $sceProvider to unescape the HTML tags.
This is how my code looks like:
myApp.filter('unescapeHtml', function($sce) {
return function(item) {
return ...
0
votes
0answers
9 views
angularjs state change start interceptor giving maximum call stack size exceeded error
I have an loopback app cloned from
https://github.com/beeman/loopback-angular-admin
Now I am trying to add the following code
$rootScope.$on('$stateChangeStart', function(event, next) {
...
0
votes
1answer
20 views
Reading url parameters in Angular JS [duplicate]
I need to read URL parameters from browser and assign it to a variable. My url will be like http://localhost:9090/ngdemo/apd.html?id=bookid-1 . I need to get bookid-1 from the url. I tried ...
0
votes
2answers
21 views
Angularjs dynamically show / hide an element based on a variable stored in session storage and stored on $scope
I have been searching a lot and can't find a solution to that will show / hide the element without refreshing the page. This is a simplified version of what I'm trying to accomplish:
HTML:
<input ...
1
vote
2answers
9 views
Soundcloud API in Angular SC.get not pausing
My soundcloud Angular app will play music, but it won't pause. Here's the code.
$scope.stream = function() {
console.log('something');
SC.stream('/tracks/329').then(function(player) {
...
0
votes
1answer
27 views
Creating custom filters in Angular
I am learning Angular and need to create some custom filters.
Do I create one filters.js file and put all my filters in there similar to all my reusable factory.js?
Eg: I have a utilsFactory.js and ...
0
votes
2answers
24 views
Registration and validation form with angularjs
I have a problem with a registration form on angularjs, I want to controle the form before submit and how can i save user data in text file or json (any solution for saving data), I did not manage to ...
1
vote
0answers
15 views
Reloading a template in IONIC
I have 3 tabs:
<ion-tab icon = "ion-ios-medkit" title = "tab1" ui-sref = "tabs.tab1">
<ion-nav-view name = "tab-tab1"> </ ion-nav-view>
</ ion-tab>
<ion-tab icon = ...
0
votes
1answer
20 views
How to test an angular service that asynchronously loads JSON from $http
Still rather new to angular unit testing. I have a service in module 'example' that loads a local JSON file through the $http service and asynchronously returns the response data.
I figured out that ...
-1
votes
1answer
22 views
What is the difference between $http and $resource?
Can I use either for a REST call ? Or is there some minor difference ? I have used both of them in my projects with no side effects,
0
votes
0answers
13 views
angular js browser forward button - redirect to different state
In the application login page calls APIs which sends user's email/phone to provide security code (user can choose where to send one time code). The problem is if user presses browser back button then ...
1
vote
0answers
14 views
Angular Directive Testing templateUrl
I'm learning how to test in angular. I've been trying to get tests to run on a directive that uses templateUrl. I'm using Webstorm with Karma and Jasmine. I have two errors that I'm trying to fix:
...
0
votes
0answers
6 views
how can I annotate dot notated providers automatically with gulp?
Let's say I have a simple API called:
var app = angular.module('slots', []);
app.service('slots.api', function() {
return {
get : function() {
return true;
}
}
});
I use ...
0
votes
0answers
11 views
Separate angular translate into multiple json that load on view
I am using angular translate for internalization. The problem i am having now is how to separate angular translate into serveral json files that load on view.
eg: Page1En.json, Page2En.json, ...
0
votes
0answers
10 views
Uncaught ReferenceError: module is not defined in the push.js that comes from the phonegap-plugin-push
i am trying the phonegap-plugin-push https://github.com/phonegap/phonegap-plugin-push but i keep getting module not defined in line 220. Anybody stumbled upon the same problem?. The error thrown is ...
0
votes
0answers
10 views
Find where data is being generated
On a website, when I click a button in an AngularJS form, it submits a POST request and in the Request Payload there is a hash (most likely MD5 since it is 32 characters long and only contains a-z and ...
1
vote
1answer
11 views
Is there a way to stop protractor after it throws a timeout exception?
Quite often there is the chance that protractor test specs throws a timeout exception.
To make debugging and troubleshooting easier, I would like to stop protractor just after a timeout exception and ...
0
votes
0answers
20 views
Passing data between angular controllers using service
I am having trouble passing data between controllers using a service. What i want to happen is when send data is clicked the data inputted into the text field should be populated in the Results ...