Tagged Questions
0
votes
6answers
45 views
AngularJS null value for select
I couldn't find an elegant way for setting null values with a <select> using AngularJS.
HTML :
<select ng-model="obj.selected">
<option value=null>Unknown</option>
...
1
vote
1answer
41 views
Click function only for a particular span
I have a twitter bootsrap dropdown ,
<button class="dropdown-toggle" data-toggle="dropdown" >
<span>Select</span>
<span class="pull-right" ng-click="showpopup();">Show ...
0
votes
1answer
22 views
Angular event detection for datepicker close
I have just started using angular and in general love it. I have a UI requirement to show a date as text, then when you click on the text, it shows a date picker instead. Then when you select a date ...
0
votes
1answer
35 views
How to clear the file name after file upload in Internet Explorer using Angularjs
<input type="file" ng-model="myobj.file" ng-file-select="onFileSelect_filter($files)" id="fileButton" >
<button type="button" ng-click="start_Filter();" >Upload</button>
and my ...
0
votes
0answers
9 views
Angularjs upload file and file reader to resize image?
i am using angularjs file upload angularjs-file-upload to upload file to server side. in the following process, i am checking the image size width and height and html5 file reader and canvas to create ...
0
votes
0answers
19 views
Setting up AngularJS HTML5 routing
I have set up a local version of AngularJS using MAMP on my Mac. I have enabled the HTML5 mode using the locationProvider so that urls no longer have the # in them.
To do this though I have added:
...
1
vote
0answers
18 views
How should I declare my namespace for angularJS ui-router so it's valid in html and VS 2013?
In my index.html I have defined the following:
<html class="dark"
ng-app="app"
ng-controller="appController"
id="ng-app"
xmlns:ng="http://angularjs.org"
...
0
votes
0answers
12 views
AngularJS css3-animate svg attribute
Is it possible to animate the change of radius of a svg element?
<circle data-ng-attr-r='{{radius}}' />
all the examples I found either use javascript or have fixed css, things like
...
0
votes
1answer
17 views
How to set common header for http
I am setting comon header for all $htpp calls using angular js
angular.module('sample module').run(function($http) {
$http.defaults.headers.common['token']='ticket' ;
});
But i need to set for ...
-7
votes
0answers
59 views
Trying to understand how this website was constructed [closed]
I am on my first internship, and I am beginning to develop the next iteration of a startup's website. While I understand HTML, CSS, and JavaScript, I still need help understanding exactly how the ...
0
votes
0answers
23 views
AngularJS + Html5 offline api and versioning
I build a large mobile application in AngularJS.
In order to increase performance on devices with slow internet connection I decided to use Html5 offline api and to load all resources into cache with ...
1
vote
1answer
39 views
Adding ng-autocomplete to input tag when dynamically creating the input tag via Javascript
"Sorry for my English as it is not my native language"
On to the problem. I have a trouble with ng-autocomplete when I dynamically create form fields.
The ng-autocomplete works fine when I create ...
0
votes
0answers
18 views
How to redirect to a page in bootstrap and angularjs when URL is accessed on IE
I have a very basic requirement.
I want my website written in bootstrap and angularjs to show a different page {landing page} when accessed through internet explorer.
For example, when URL is hit, ...
0
votes
1answer
27 views
Is there anyway using html5 to force android/ios virtual keyboard to be shown
I have some html forms that when they get rendered I would like the keyboard to appear without the user having to touch the field first. I have tried using click and focus neither brings up the ...
0
votes
1answer
31 views
How to call service from different file in Angularjs
I know almost same kind of question is answered in couple of other posts but I'm getting "Unknown provider" error on calling service written in different file then callee Controller function. Could ...
0
votes
0answers
15 views
Synchronize multiple HTML Element's Width
I am implementing a responsive web application.
<div>Regular Title</div>
<div>A Longer Than Usual Title</div>
<div>Normal Title</div>
<div>Standard ...
0
votes
0answers
10 views
How to reset angular file upload directive to permit upload of modified file
I have the following file upload directive and related template. Also see plunkr.
It works well except when a user uploads a file (simple text file, actuall), then decides what was uploaded was ...
0
votes
2answers
40 views
AngularJS and line breaks
I'm having some issues once again. There's a very simple form:
<form ng-submit="funcion_modelo_adherir_cadena()">
<textarea ng-model="nuevo_modelo.scan_addresses" ...
0
votes
1answer
50 views
Angular and Single tags and unnecessary attribute
I have
<tag zn="abcd" ></tag>
I need get
<input type="text" value="{{value}}" ></input>
But I get unnecessary attribute 'zn'
<input type="text" value="abcd" ...
2
votes
4answers
58 views
AngularJS - ng-repeat to display empty cell/s when data is not available
I have a simple ng-repeat that loops through a JSON file with a list of countries and details about that country e.g. currency, population for a particular set of months (24 in this case)
My ...
0
votes
1answer
29 views
HTML Canvas - Draw Rectangles at selected location
I'm making a simple game with AngularJS and I wanted to add a canvas to the game. I never used it before and I'm still learning. I don't know how to do the following:
I made a grid to be easier to ...
2
votes
2answers
36 views
angularJS : validation pattern should allow ? but should not save to server
Plz check example where i need to show "??" into textbox initially.
but those "??" should not save to the server means it should save data validated by regEx.
For that i am assigning "??" initially ...
0
votes
0answers
44 views
AngularJs Methods being called twice.. No Route defined
I am trying to learn AngularJs, and I am stuck with 1 problem for hours now. My functions are being called twice. I have seen other Q&A 'Combating AngularJS executing controller twice' on ...
1
vote
2answers
64 views
Why did my UI Bootstrap datepicker-popup stop working?
I updated to UI Bootstrap 0.11.0 and my datepickers stopped appearing as they should. I have a plunker that demonstrates it at here. Very simply, I have:
<input ng-model="formData.dueDate" ...
0
votes
1answer
30 views
Content doesn't update on route change
When I change route, from say /set/1 to /set/2, then it still shows the information from /set/1 until I manually refresh the page, I've tried adding $route.refresh to the ng-click of the links to ...
0
votes
0answers
39 views
d3.js chart interaction causes HTML5 drag and drop to stop working
I'm using HTML5 drag and drop to create some sortable tabs. Here's the exact code although it's Angular specific: http://stackoverflow.com/a/23443028/1267778
I have an svg chart using d3.js inside ...
0
votes
3answers
37 views
How to have a common header shared by all webpages in AngularJS?
I would like to have a header.html which defines how the header for all my web pages will look like. How can I insert this header.html into the other web pages at the top?
There may be better ...
3
votes
2answers
66 views
AngularJS SEO using HTML5 mode: Would love some clarity on how this functions behind-the-scenes
There are numerous resources out there for implementing SEO-friendly versions of AngularJS applications, of course. Despite reading all of them numerous times, I'm still a bit unclear on a few things, ...
2
votes
0answers
43 views
“Save As” a file that is in HTML5 local storage in angular application
I have seen a number of questions that talk about getting data into HTML5 local storage and even seen a cool text editor that saves the files in local storage. I have a similar application and would ...
1
vote
1answer
25 views
AngularJS ngRepeat filter with null values removes nulls permanently, why?
Here is a JSFiddle example I made that explains the issue:
http://jsfiddle.net/s6Lj2/2/
Notice that in the data
$scope.places = [{
name: 'Chicago',
status: 'Active',
analyst: 'Sam',
...
0
votes
1answer
39 views
Is it possible to create a self contained Angularjs app that will not clash with with any other Js or css libraries on the same page
This may not be a plausible and I will except that as an answer if someone can tell me why with reasonable detail but I am looking to create a simple Angularjs app that I can include in any html page ...
0
votes
2answers
35 views
Creating AngularJS object that calls method on app load
I am wondering if there is a convention within AngularJS for creating an object that lives within the app module, but is not attached directly to the view in any way, but is called when the view has ...
0
votes
0answers
33 views
angular bootstrap - how to make an accordion with list html5 tags
I have a list making with simple html5 tags:
<ul>
<li class=" nav-gray">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseSix">
...
1
vote
1answer
50 views
Angular + HTML 5 pushstate error
I have Angular version 1.2.16, and my module is configured like this:
publicApp.angularModule = angular.module('Public', [ 'ui.select2', 'infinite-scroll', 'ngSanitize', 'ui.utils'])
...
-1
votes
0answers
21 views
binding html5 data to angular model using jquery component
I am using a jquery form helper that allows a user to increment the numerical values. I am doing form validation in angular, but it doesn't seem to bind the data entered to the angular model:
...
0
votes
1answer
24 views
Protractor: sessionStorage variables
How would I get the value of a sessionStorage variable in protractor? I tried:
browser.executeScript('sessionStorage.getItem("login");');
but that returns null. Using sessionStorage.getItem() ...
2
votes
1answer
42 views
HTML5 File Reader API: the event 'onload' does not fire
I'm new with AngularJS, HTML5 and JavaScript. I'm doing a service in angularjs that reads text files. I'm using the HTML5 File Reader API. The problem is that the event 'onload'(or other) does not ...
0
votes
0answers
50 views
Why is this AngularJS routing broken when html5mode is enabled?
I would like to use AngularJS routing. I am using AngularJS-seed-master as a start and routing works by default. However, it stopped working after I enabled html5mode. Below is the html code when ...
0
votes
1answer
38 views
Dart Polymer form field not showing validate errors
I have code similar to this example working nicely with a sing-page app using AngularJS. I wanted to upgrade the page by using Dart and Dart-Polymer.
In the HTML5 AngularJS version the HTML types ...
0
votes
0answers
24 views
Keyboard input in Fullscreen Mode with Safari
I have seen this question asked before in the past but the ones i can find were asked a while ago so here it is.
I have an AngularJs app, I am using the Fullscreen API as follows:
function ...
0
votes
1answer
30 views
How to get color of svg linearGradient at specific position
I have a linear gradient that is used as percentage bar with a small ellipse that moves along the bar to show the current completion percentage. The completion percentage is updated via an AngularJS ...
2
votes
1answer
30 views
AngularJS Numbers and Return
is there a way to use AngularJS to only accept Numbers and Return (/n/r) in a textarea?
similarly like this:
<textarea>
2344
5335
55555
2222
234
</textarea>
Above is just an example of ...
6
votes
1answer
87 views
angularjs compress image before upload
I'm buliding a web site for mobile devices, that use angular-file-upload.min.js for uploading images from a mobile device image library.
html:
<div>
<div class="rating-camera-icon">
...
0
votes
1answer
37 views
html post method vs angularjs
i want to use angular js in my application, and at the initial stage I followed plain html for front view and back end potion I used servlet and ejb class where I organized sql query's following CURD ...
1
vote
2answers
41 views
Updating html input with getElementById and Filtering with AngularJs
I am Using html input which gets changed via an External Js file. The input field is used to filter a list of table.
Very Basically I have:
JavaScript
<script>
...
0
votes
0answers
28 views
Angular and HTML5 fullscreen API
In my main controller, I've got a function that toggles true/false for a fullscreen browser state like so:
// Full Screen toggle
$scope.fsState = false;
$scope.fullScreen = function fullScreen(){
...
0
votes
1answer
16 views
AngularJS model is not updating view when using input type as number
When I use input type as number with value attribute it didn't shows the value it the input box. But, when I change it to text it works correctly.
<input value="30" ...
0
votes
1answer
47 views
How can I use HTML5 geolocation in angularjs
How can I use HTML5 geolocation in angularjs?? I can get it using HTML55; but how can I pass it to angularjs scope in controller??? any sample jsfiddle will save my day!
1
vote
1answer
22 views
How to space apart bootstrap label components?
I'm using angular.js and serving bootstrap for my front-end. I'm laying out labels with the following code:
<div class="some_labels">
<label>
{{main.text}}
<span ...
0
votes
1answer
59 views
Angular directive to replace external links
How can i create a custom filter to replace:
<a href="http://www.externalsite.com">Whatever text</a>
into this:
<a href="#" ...