Tagged Questions
0
votes
1answer
8 views
Html5 Server Events library for AngularJS
I'm wondering if there is any angular library to deal with server events. Currently, i'm using:
var source = new EventSource('/api/stream');
...
0
votes
1answer
20 views
Select Option set default value from list if value match using angularJS
I have html.
<select ng-model="user.role" class="form-control" name="role" >
<option value="">Select Role</option><option ng-repeat="role in roles" ...
0
votes
0answers
11 views
Configure nginx so that it works with angularjs html5mode
It doesn't work for me. It always redirects to 127.0.0.1:8080/
nginx:
location / {
autoindex on;
root share/nginx/html;
}
location /adm {
alias share/nginx/html/dev2;
...
0
votes
2answers
31 views
404 error when using routing with Angular.js
I'm trying to set up routing with angular and angularfire but am having trouble.
var app = angular.module('sampleApp', ['ngRoute', 'firebase', 'ui.bootstrap']);
app.config(function ($routeProvider) ...
0
votes
2answers
39 views
AngularJS on-click not working when i'm passing it an ID
I receive the following error
Error: [$parse:syntax] Syntax Error: Token 'edition.multiverse_id' is unexpected, expecting [:] at column 17 of the expression ...
0
votes
0answers
24 views
Drag and drop with AngularJS, Javascript and HTML doesn't work
I researched much, but I didn't get the answer.
At the moment I'm learning Angular and javascript and so I'm building a todo-app with HTML, Javascript and (of course) Angular. I want to have a drag ...
0
votes
0answers
24 views
Positioning div top and bottom like select box position in html [on hold]
I have a List in which at every row there is a list as well its work like choose item from list. but when the line increased in list the relented item list get hide. i just want to change its position ...
0
votes
0answers
4 views
fieldset not working with window.print
I'm trying to find the cause of printing problem where the border of a is marking through the and many of the text boxes contained in the legend are going outside the bounds of the . I'm using ...
0
votes
1answer
26 views
Producing dynamic html from a json in angularjs
I have this plunker in which i have a json object which is nested in angularjs.
I am using bootstrap navbar to make a menu out of this json. I am stuck at this point. How do i Parse a highly nested ...
0
votes
1answer
13 views
Angular Routing, HTML5 Mode and Apache
I'm not having any luck getting this to work. I've tried several configurations, as described here, here and here, but no matter what I do, page refreshes all end up with a 404. If I put ...
0
votes
0answers
19 views
Communication between browsers with different scopes? angularjs
I'm trying to use Drag and Drop HTML5 API to do interaction between browsers, but I'm also incorporating Angularjs with it as well. However, I came up to a conclusion that I don't think the way $scope ...
0
votes
1answer
12 views
Add search filter inside the select dropdown in AngularJS
I want to add a search filter inside a select dropdown in angularJS.
I have used ng-options to list down the options and used filter to filter out the data in the search box , but the problem is ...
0
votes
1answer
14 views
How to access file uploaded by $http and HTML5 FileReader
I am trying to upload an image inside an Angular app, the code looks like this:
var f = document.getElementById('product-image').files[0],
r = new FileReader();
r.onloadend = ...
1
vote
1answer
31 views
Creating Dynamic ng-model in AngularJS
Following is the working code - http://plnkr.co/edit/6lRhiTd1BrKRdThY0WNB?p=preview
In this if you select the number from drop down and fill data then click and check console you will see the result ...
-3
votes
0answers
37 views
Looking for new statistics: PhoneGap, AngularJS, HTML5, JavaScript, Mobile [closed]
I'm doing some research on the rise of usage in PhoneGap, AngularJS, HTML5, JavaScript and mobile development. This topic is of great interest to me and rangle.io, the full-stack web and mobile app ...
0
votes
2answers
36 views
How to get value from mysql database row by row after each click on button?
I want to get questions one by one by clicking on button from mysql database table. Each question is one single row, want to get every next question by clicking on "next" button from every next row. I ...
-1
votes
1answer
40 views
Object html tag data attribute not working with angularjs binding in IE11
I got any application where I need to display file from urls I got in database. Now this file can be an image and it can be a pdf. So I need to set some binding dynamically. I looked on internet and ...
-1
votes
1answer
26 views
Transition animation on page switch CSS3
I thought of a cool thing to do with my new site which is having a sliding transition between my pages. I have googled around and have found solutions like angular.js and many other like it, however ...
0
votes
2answers
41 views
Loading table dynamically with Angularjs
I'm trying to load a table dynamically from a json, but I have a problem to go through two lists before the tag <th> and <td>.
In the example below I am using the just to simulate what ...
0
votes
0answers
11 views
How to make onsenui button bar item become checked on mousedown rather than click
I am currently using a button navigation bar from OnsenUI used to navigate through pages. One thing that I want to change is how it selects a different button based on a click event instead of a ...
0
votes
0answers
13 views
fabric Canvas not working in Mobile devices using angularjs html 5
I have a very strange issue with canvas.
I have used fabric.js and *HTML5* and angularjs and also used responsive for mobile devices
All are working in my system browser. but when i run my ...
0
votes
0answers
12 views
AngularJS: Force focus on iOS7
following a stackoverflow link (sorry I lost the URL) I created a directive
app.directive('focusMe', function($timeout) {
return {
scope: { trigger: '@focusMe' },
link: function(scope, ...
0
votes
2answers
151 views
Dragging inside Table
I made dragging functionality, but stuck in something, cuz not pRo 😔 . Source hereangularjs.
It's about smart-table directive from lorenzofox3
But point of question is dragging feature itself.
I ...
0
votes
1answer
35 views
enabling one button inside disabled fieldset
I want to disable all the elements inside Fieldset but enable few buttons inside it.
Demo:
<fieldset ng-disabled="true">
<legend>Personalia:</legend>
Name: <input ...
0
votes
1answer
21 views
How to m validate Form outside the form in angularjs
Can anybody have Idea about how can we validate the form from outside the form . example in a page i have a form control and a button control that is out the form how i validate the form on button ...
0
votes
0answers
17 views
How to add tip message to ngtable's control?
I added function of filtering and sorting table to ngtable and they worked well.
code as below:
data-title="'Reminder'"
header-class="tableTitle"
sortable="'SpanText'"
filter="{ 'SpanText': 'text' ...
1
vote
1answer
42 views
Reading data from JSON file in Angularjs
Hai i am new in Angularjs. I am trying to read data from JSON file, But it returns a strange output.
Here is my controller.js file
angular
.module('app')
...
0
votes
1answer
20 views
Angular ngBlur “sender”?
Newbie question.
My Input element has a ng-blur directive set which fires nicely. The function it calls on the $scope is generic. How do I know what Input element X was the sender when I am in the ...
3
votes
3answers
94 views
Restricting Characters in Input Field to a Set of Characters
Question Update: How can I prevent all characters except for the ones specified in a char array from being typed into an input field using AngularJS (or jQuery)?
Old Question:
I have a simple ...
0
votes
1answer
23 views
Conditionally choosing view templates based on data from HTML5 localStorage
Run
myApp.run(function(){
if(!(window.localStorage.storage1)){
window.localStorage.setItem('storage1', null);
});
Home View
<div ng-if="window.localStorage.storage1 == null">
...
1
vote
1answer
38 views
Select in Angular JS - I need the element and value attribute to be the same
I have a json like this, stored in $scope.result:
{ "tips":["p1","p2","p3","p4"],"actualTip":"p4"}
And I need to do a comboBox with Angular. I did this:
<select class="form-control" id="one" ...
3
votes
2answers
80 views
optimize angularjs search filter
Here are almost 2000 rows in the page. I use AngularJS filter to search some items which contains the typed strings. The problem is that efficiency is bad when typing one character into the input ...
0
votes
0answers
31 views
HTML5 EventSource onmessage never called from Web API 2
I have a RESTful Web API 2 solution whose methods are called from an AngularJS application. I wanted to add support for sending notifications from the server side API to the client logic. However the ...
0
votes
2answers
32 views
AngularJS Initialize a dynamic date field to JavaScript Date
I am building a dynamic form and am using the HTML5 date input for fields of type date. I was struggling to get the date input to display my date, and have come to the conclusion the value has to be ...
0
votes
2answers
47 views
Angular js ng-class false condition not working in ng-repeat
I want to highlight li if that radio is selected.
Inside ng-repeat, ng-class true condition is working, but false condition is not working, please check the code below
<div ng-init="friends = [
...
0
votes
2answers
39 views
angular websocket factory
I have websocket service that works great when page is loaded. However, if connection is lost, and the service is trying to reconnect I am getting an error: "Uncaught ReferenceError: Service is not ...
0
votes
0answers
16 views
Best way to optimize an Angular directive which controls a wizard
I recently found a basic html/css/js wizard online, which I recently converted to an Angular directive.
My current wizard has six steps, so I'm trying to make the code more generic.
Currently ...
1
vote
1answer
22 views
How to make an empty grid with angularJS ng-repeat?
I am trying to make an empty grid using angularJS, I am 2 days new to it so I dont know much, this is what makes sense to me:
<!doctype html>
<html ng-app>
<head>
<script ...
0
votes
0answers
7 views
How do I clear the jqxinput textbox in angular method?
FYI : I have all my scripts and other necessary files loaded.
In my controller, I have:
mainApp.controller('secureLoginController', ['$scope', '$state', 'mainWebService', function($scope, $state, ...
0
votes
2answers
87 views
Simple AngularJS drag & drop solution
There are solutions that require hundreds of libraries to be included and it's obviously not satisfactory. I know there are quite a few questions about drag & drop, but my requirements are ...
-1
votes
0answers
33 views
Controller calls multiple times angular js
Iam new to the angular js environment,please kindly see the code below.I dont know why the controller calls multiple times.Could any of you please help me in getting out of this issue.
This is my ...
0
votes
2answers
61 views
How to set tab variable to angular js variable [closed]
I am trying to loop through my dynamic app content. I have a grid that gets repeated with ng-repeat which makes tiles. When you click that dynamically created tile, I want to assign the clicked tiles ...
1
vote
0answers
36 views
How to structure AngularJS and PaperJS project
The idea is to make use of Angular in a simple canvas game development. In theory the project should benefit from being more systematic, manageable and scalable. This is not a sprite/tile/collision ...
3
votes
1answer
79 views
Horizontally Tile Div Tags with Bootstrap and maximize on click
I'm using angular JS and Bootstrap to display some dynamic data, I currently have it tiling 3 divs. However I need it to tile more than 3 i need them to be smaller, however I can't figure out the ...
0
votes
0answers
32 views
Data loss when posting text with summernote
I'm using angularjs with summernote.
html:
<summernote height="200" config="options" ng-model="resource.text"></summernote>
js-controller:
$scope.resource = {
text: ""
}
...
1
vote
2answers
43 views
Is possible to use this angularJS html attribute: ng-include=“{{…}}”?
i'm working on a small project that should load posts in a webpage. I think that I could do that fast using the angular ng-repeat to create the posts and then use ng-include to load the post formatted ...
-2
votes
0answers
22 views
Angular localstorage GAME Settings
I Developing HTML5/Angular Game. In a MAIN MAIN i have option to select game board size
How to load different game layout using local storage and angular ????
I found a solution in the internet ...
-1
votes
1answer
22 views
How to access the template through the controller in Angularjs
How to access the template through the controller in Angular Js
Thanks.
1
vote
2answers
43 views
angular template src variable not working
videoSrc variable not evaluating properly
images/{{videoSrc}}.mp4
if i'm writing only videoSrc then its working propely but while concating with other string it is not working
see jsfiddle
1
vote
1answer
59 views
AngularJS + Java in HTML5 mode
I'm writing a system where the frontend is in AngularJS and the backend is in Java with Jersey.
But I am having problems using $locationProvider.html5Mode (true);to remove the "#" in url.
If I ...