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
6 views
scaling large image to fit screen width using angular
Using angularjs i would like to scale a large image's height/width so that it fits the screen on multiple devices (responsive). This website is an example of what i am trying to accomplish. Does ...
0
votes
0answers
17 views
How serialize objects with angularjs
How can I serialize an object without using the "$ .param" jquery?
I want the object below:
var user = { username: 'ronald.araujo', password: '123456', };
Has the following output:
...
0
votes
0answers
4 views
How can I make multiple checkbox values persist using angularJS local storage?
I'm currently designing a PhoneGap app with HTML5 and angularJS. The application needs to act like an attendance register, where multiple checkbox values need to persist - corresponding to current ...
0
votes
0answers
6 views
Angular.js: page flickering on authentication redirect
I'm implementing some simple client-side authentication logic in Angular.js. The pages involved are:
/account#/login (public)
/account (require login)
/account#/settings (require login)
...
1
vote
0answers
5 views
angular compile template after socket
How to update a template for a directive at a later time after it loads such as for responding to using a socket-listeners? I would also be interested in seeing how I could do this outside of the ...
2
votes
3answers
16 views
Sharing Data Between Controllers, Angularjs 1.3 version
I am working on this jsfiddle, it is in angularjs 1.2.17
However when I try the same script with angularjs 1.3.14 it gives error, see console.
Finally when I try this fiddle again with 1.3.14 ...
-1
votes
4answers
32 views
String trimming in Javascript
I have a API that returns a JSON string. I only want part of the string it returns.
it returns a car style
"S 4dr Sedan (1.8L 4cyl 4A)"
"CE 4dr Sedan (1.8L 4cyl 4A)"
"LE 4dr Sedan (1.8L 4cyl 5M)"
...
0
votes
1answer
8 views
angular $state.reload not working
I have a state set up for logging out a user. I have it set up like this:
.config(['$stateProvider', function ($stateProvider) {
// Now set up the states
$stateProvider.state('login', {
...
0
votes
0answers
8 views
Does JavaFX2 WebView support angularjs?
When trying to authenticate users for Spotify the user has to be redirected after logging into the Spotify service. The page to enter the credentials opens in the WebView just fine but the redirect ...
0
votes
1answer
16 views
dynamically adding angular directive in custom directive is not working
Using my custom directive I would like to move the ng-model from root directive to child input element. For some reason the model is not working on child element. Here is the code
Markup:
...
0
votes
0answers
27 views
undefined is not a function at getFases()
The code below is from a simple SPA with one option that should return data from a list in sharepoint,
When I debug the error seems to be thrown by thi line, however the full stack shows a ...
2
votes
2answers
32 views
Why is my AngularJS module never loaded?
I am an AngularJS newbie, and am having difficulty getting an AngularJS form to work correctly. Chrome Dev Tools tells me my module is not being loaded.
Below is my html; it is a div within a ...
0
votes
1answer
17 views
AngularJS nested directives depth
I am searching for a way to mark the depth of nested directives.
Lets say we have a item-container and a ch-item and I nest them a couple of times
like this:
<ch-item-container>
...
0
votes
0answers
22 views
MEAN with mySQL
I'm trying to learn angularjs and I want to use mySQL instead of MongoDB in my MEAN stack. Coming from a LAMP background, I am having trouble understanding the organizational/functional structure of ...
0
votes
0answers
10 views
AppGyver Steroids Supersonic Views
I'm trying to get my head around switching views / passing views to another view.
I have an app that is calling in a kimono API, that's all setup with the supersonic background and looks fine. I have ...
0
votes
1answer
12 views
Angular Js post date Bad Request in Java Spring mvc
In Java Spring MVC project, I post an object to a @RestController and the object I post has an date property. If I remove this property, the post works successfully. But with the date property, it ...
0
votes
3answers
28 views
Angular model/controller “hierarchy” setup
I am building an angular app that is essentially an admin panel for all my sites & their environments using ngboilerplate. I need to setup a kind of hierarchy of functions & model data such ...
0
votes
1answer
10 views
ngStorage [$injector:modulerr] Error
I did the following in the code:
angular-core.js:
var jdi = angular.module('jdi', ['ngStorage']);
login.html:
<!-- Angular -->
<script ...
0
votes
1answer
15 views
Pass data through $state.go and how to access it
Now I need switch view by using $state.go, but I need to pass some data in it. (I perfer to pass a object) I searched on line for help, but didn't see a good answer which fit my question. Here is my ...
1
vote
0answers
23 views
Can't update object in database
I'm trying to update an array in one of my database objects.
I'm checking the object before making a put request. But the object won't update in my MongoDB database.
newEntry.controller.js:
...
0
votes
1answer
21 views
How to execute function if dropdown value change in edit?
I want to use ng-change directive when user change dropdown value i want to show text area where user can enter the comment, Problem i am facing is when user change value its not showing the text ...
0
votes
0answers
11 views
Spring Security not reusing authentication data with Spring Session EnableRedisHttpSession
I was able to successfully run this configuration using the sample spring boot Groovy Maven implementation from https://github.com/dsyer/spring-security-angular/blob/master/vanilla/README.md. It is ...
0
votes
1answer
14 views
Computed property from inner scope is needed in outer scope
jsfiddle: http://jsfiddle.net/s0ngtz8j/
I have an outer controller: OuterCtrl. Property "Name" is in scope of OuterCtrl.
Within scope of OuterCtrl, I have inner controller: InnerCtrl. Property ...
1
vote
0answers
12 views
angular chained orderby not updating when running protractor tests in browser
I am currently facing an issue with angular's ng-repeat directive containing multiple, piped filters when running it during a Protractor test suite. Although I can see Protractor click the sort/toggle ...
0
votes
1answer
5 views
Angular firebase, cant login using factory
I get an error when i try to login using this code. The part of creating the user works perfectly and the login methods I used are nearly identical. But chrome gives me this error message:
...
0
votes
0answers
4 views
kendo kendorendered not fired
I have a Angular-UI modal dialog with a kendo combo box.
The first time it is opened, the event 'kendoRendered' is fired.
If the $modalInstance is closed or dismissed and then reopened, the event is ...
0
votes
0answers
5 views
Kendo UI ComboBox 3 Way Cascade, Parent Enables Grandchild Incorrectly
I have three Kendo ComboBoxes setup to load remote data (non-server filtering) in a pretty standard way. But for some reason, when I select the top parent, both child and grandchild are enabled. The ...
0
votes
1answer
15 views
Can I init an Angular ngModel in html, and then use its value in controller?
html:
<div ng-controller="MyController">
<form>
<!-- one way to do it -->
<input ng-model="var1" value="1"></input>
<!-- another way, not approved per angular ...
1
vote
1answer
24 views
AngularJS - why is the ng-click handler not being fired?
Here's the HTML:
<tr data-ng-repeat="a in assignments" data-ng-click="vm.handleAssignmentClicked()">
...
</tr>
Here are the associated directive and controller:
angular
...
0
votes
0answers
10 views
How to correctly update the controller scope when using Firebase events
I'm using Firebase and Angular. I do not want to use the AngularFire library in my app, so I do this kind of call:
.controller('mycontroller', function($scope) {
new ...
0
votes
0answers
14 views
ui router - abstract state inside à normal one (3 levels)
i'm trying to get work this combination of sub levels routes.
http://plnkr.co/edit/1nBzppJkB45Ljv5SRW4b?p=preview
i took a sample from ui-route on github and added a parent view (contactg).
...
0
votes
1answer
13 views
Filter on a specific property from code using angularjs built-in filter
How can we filter based on a specific property for the built-in filter, from code?
I know how to do it from markup -
<li ng-repeat="user in users | ...
0
votes
2answers
12 views
How to make a failed routing resolve promise load a different template URL?
Learning Angular and running into an issue I cant seem to find a "good" answer to. I've been following the official Tutorial and have a similar setup with a project Im working on.
The $routeProvider ...
0
votes
1answer
28 views
Angular multiselect menu with arbitrary bindings
How can I bind a select menu to a bunch of arbitrary options in a select menu.
I tied this:
<select multiple class="form-control">
<option ng-model="some.prop">Average</option>
...
0
votes
1answer
26 views
Change css property dynamically using AngularJS
I'm trying to change the background color of a class dynamically, the color that I have to use comes from an API. I'm using a pseudo-element because what I want to achieve is like this
<div ...
1
vote
0answers
22 views
Update cookies with AngularJS
I'me a noob on AngularJS. I'm trying to manage cookies but it doesn't works as I want. I've two version of this code that seams identical but if the first one works... The second one failed.
The code ...
0
votes
0answers
6 views
thinktecture identityserver v3 sample does not work
I'm new to web-security. I was looking for a user management/identity system for an Angular SPA with ASP.Net Web Api backend. I found the Thinktecture IdentityServer v3 and watched some tutorials and ...
1
vote
0answers
9 views
How do I set the tabindex (or any other attribute) of an AngularUI Boostrap tab heading link?
I'm using AngularUI Bootstrap like this to create a tabset:
...
<tabset>
<tab heading="First Tab">
<div>First Content Here</div>
</tab>
...
1
vote
0answers
24 views
Nothing shows up when replace is set as true in my Angular directive
I am learning AngularJS. I wrote a simple directive. It only works when replace is set as false. The funny thing is that it is supposed to be true if I understand correctly. Can anyone please help me ...
0
votes
0answers
13 views
Angular ui.router - testing for empty params
I'm building an Ionic/Angular app and have several dynamic routes. Several of the routes require values to be set in one of the other routes.
.state('tab.taskboards', {
url: ...
1
vote
0answers
9 views
How to switch between httpBackendMocks in protractor test
I am trying to mock responses to API calls within Protractor tests. In different tests (and within tests), the application will POST to an API (always the same URL) with different data POSTed, and ...
0
votes
1answer
6 views
Angular-strap $affix service instantiation issue
I'm trying to use Angular-strap's $affix service to programmatically attach affix behavior to 3 different elements; two of these must respond to whether the target browser is roughly desktop-width or ...
2
votes
1answer
21 views
Angular filter works, but sees input as undefined and throws error
I wrote a filter that appears to be working fine, although I am getting the following error.
TypeError: Cannot read property 'replaceAll' of undefined
The filter replaces erroneous relative urls ...
0
votes
2answers
18 views
not able to change a value assigned to this object using .bind
I'm using angular to develop a web app and I'm trying to use a function's .bind method to assign the this value on a method of one of my controllers. It looks like this:
var welcomeCtrl = function ...
0
votes
1answer
29 views
If object.value == this, then ng-repeat
I have 3 tables. Each one represents users with different roles. These are for Admins, basic users and ALL users. I want to add a filter onto my ng-repeat, or in my controller, to show only users with ...
0
votes
3answers
32 views
using ng-hide to display/hide buttons based on a condition
I have three buttons in my mark-up two of which are currently being hidden. Like this:
<button ng-click="validate()">Submit</button><br />
<button id="retryquiz" ng-hide="true" ...
0
votes
0answers
9 views
lazy-loaded states with ui-router
My lazy loading library is this: ocLazyLoad and I'm attempting to use it with ui-router.
I have my routes declared in two separate files that are concatenated together in the build process. Here is ...
0
votes
2answers
22 views
Dynamically creating webpages using javascript frameworks
I'm trying to make a small web app for learning purposes but I'm not sure what frameworks I should be using to make my web app possible.
The app will consist of two types of users: streamers and ...
-1
votes
2answers
26 views
AngularJS Controller function - TypeError: object is not a function
I am creating an email application that makes RESTful calls to Google APIs. I am using AngularJS and Java. I have had some success so far but I am unable to delete an email because I keep getting this ...
0
votes
1answer
15 views
How to retroactively add a UI Bootstrap Tooltip to some SVG elements?
On a project I'm working on, we've created some SVG maps. We've got a system where we can get information about a particular location on the map from our database. I'm working on making a UI ...