Tagged Questions
0
votes
1answer
7 views
How do I display variables passed from Express in an Angular template?
I have a variable that I passed from Express initially to a page which also uses AngularJS. However when I try to access it with {{}}, it doesn't seem to appear. Does this only retrieve variables from ...
0
votes
0answers
4 views
Create a sticky tooltip in highcharts-ng. Implemented in jquery highcharts
I have to create the same feature that has been achieved in jquery highcharts,
(The Left most y-axis having the rectangle boxes with values like 600 and 300)
You can see the implementation here :
...
0
votes
2answers
9 views
$locationChangeStart only on back button
I have a $locationChangeStart in my code, but I only want it to execute when the browser's back button is pressed. Is something like this even possible?
app.run(['$rootScope', '$http', '$log', ...
0
votes
1answer
8 views
loading localized content for an AngularJS app
Up until now, I've generally loaded localized content by using a language code that gets sent from the browser to the server. It could be derived from the browser's language setting or selected by the ...
0
votes
1answer
16 views
AngularJs directive: call method from parent scope within template
I'm pretty new to Angular directives, and I'm having a lot of trouble getting this to do what I want. Here's the basics of what I have:
Controller:
controller('profileCtrl', function($scope) {
...
0
votes
1answer
21 views
Calling factory functions from inside a controller (AngularJS)
To help encourage dependency injection, I've had to isolate some of my functions and variables into a factory that is then called in an unrelated controller that requires use of its functions.
Here ...
1
vote
1answer
23 views
Wrong element height from a Directive with jQuery
I'm new to Angular and I'm trying to do some DOM calculations and manipulations from Directive using jQuery. What I've got however is wrong height of my element. In my case the element is something ...
0
votes
0answers
15 views
Directive that run after ng-repeat
I have similar problem with this one Calling a function when ng-repeat has finished but I have directive and ng-repeat inside.
<my-dropdown>
<li ng-repeat="item in ...
-1
votes
0answers
6 views
how to activate second tab of Kendo UI tabstrip using angularJS
Im basically new to Angular world. But trying hard to get the phase.
What problem I now have is, how to access kendo tabstrip in my JS file and activate second tab onClick().
Please note I do not ...
0
votes
1answer
15 views
Difference in $interpolate between AngularJS 1.0 and 1.2
I'm writing a filter to format addresses in a single line. The object that will be passed into the filter has the format:
{
Line1: "123 Main St.",
Line2: "Apartment 2", // Optional
City: ...
0
votes
1answer
14 views
Passing information from Razor client (cshtml) to AngularJS
I have the following razor file:
@{
ViewBag.Title = "Blah";
Layout = "~/Views/Shared/_Layout.cshtml";
ViewBag.InitModule = "myFooModule";
}
@section Scripts{
<script ...
0
votes
1answer
31 views
angularjs ng-options with custom filter not working
Sorry to ask this question again but no answer or workaround has been identified.
This is a follow-up of this question : Stackoverflow
I have a plunker which describes the issue (basically putting a ...
0
votes
1answer
14 views
How can I unit test an Angular service that registers a callback on its dependency?
I have an AngularJs service that depends on a SignalR client for push based updates.
MyService registers a function with the SignalR proxy for handling the update, which is called when the SignalR ...
0
votes
1answer
6 views
angularjs $resource result jsonp
I want to send a request my server via JSONP and get results but I could not do it.
My server link that returns json result.
$scope.data= [
{ id: 1, name:"D1" },
{ id: 2, ...
0
votes
0answers
14 views
Error JSon mapping from entity with AngularJS
here is my problem.
i created a small project in java + spring mvc + hibernate + angularJS.
i would like to display data from my Oracle DB.
i have those two objects :
@Entity
public class Survey {
...
0
votes
1answer
24 views
unable to post to node.js - express from angularjs
I am trying to post some data to node.js - express server from my angularjs front end and I do not think that my post request is ever getting to my server.
Here is some basic angularjs on the ...
0
votes
1answer
30 views
ng-click - displaying message that checkbox is required
I have an element which has ng-click function. On click it performs certain action. I also have a checkbox which must be checked to perform such action.
If it is not checked it should show an error ...
2
votes
0answers
14 views
Turn AngularJS test helper into package
I have a bunch of test helpers for angularjs that I'm using in several projects. I want to pack them into a npm or bower module/package, to easily reuse and share them. But I'm not sure, what the ...
-1
votes
0answers
24 views
AngularJS app performance slowing down
I am fairly new to AngularJS but quite interested in using it for a production application.
I wanted to use
http://kelp404.github.io/angular-form-builder/
as a baseline for my project, but it seems ...
0
votes
0answers
26 views
Angular.js directive function return value in controller
I have a problem with directive.
In my directive i have init() a video player manipulation plugin.
Now in my html i have 2 buttons:
playVideo
markIn()
I want that user click on markIn() button ...
0
votes
1answer
16 views
Kendo Grid toolbar item not firing click function:
i have a few items in Kendo Grid Toolbar.
Everything works fine excepts last item called "test".
Click event not firing defined action.
Question is: How to solve that to fire another AngularJS ...
0
votes
0answers
37 views
Is AngularJs the right choice for Scalable Applications? [on hold]
I have been researching for weeks now on the right architecture for creating a web page/ form builder solution ( something similar to this: http://www.formassembly.com/service-overview.php) and after ...
0
votes
0answers
8 views
Sortable table header with AngularJS gives TypeError: undefined is not a function
I'm using a sortable table header Directive found like here: http://plnkr.co/edit/Arj66CKXq1qa1Ti99oC9?p=preview.
On localhost i'm getting the following error (chrome) when sorting the table header:
...
0
votes
1answer
22 views
Add sqlite query result to angularjs $scope
I have this sqlite query in a angularjs app.
$scope.testArr = [];
$scope.testFunk = function(){
var db = window.openDatabase("test", "1.0", "Test DB", 1000000);
...
0
votes
0answers
12 views
UI.Router: Angular dashboard widgets' states + service
I'd like to build a dashboard containing several widgets. Each widget is effectively a separate module with its own template, as well as controllers and directives etc. Each widget can be maximised to ...
0
votes
1answer
24 views
Infinite scroll horizontally left
Im currently working on a gantt chart built in angular, I'm currently at the stage where i need to load more dates into the application when the user scrolls left or right.
Triggers are fired based ...
0
votes
1answer
28 views
Access ng-repeat scope within controller function
Say I have
<div ng-repeat="i in items">
<span ng-show="editing">i.something</span>
<span ng-show="!editing">i.something</span>
<a ...
0
votes
1answer
12 views
Set angular directive options as child tags
I'm learning AngularJs now, and trying to write my first directives.
So i have a question: is there any way to pass complex options to directive. For example i want to write directive wrapper for ...
0
votes
0answers
13 views
AngularJS Text Content Slider?
Is anyone familiar with a content slider for text similar to https://github.com/simpulton/angular-photo-slider or Foundation's Orbit Slider for use in AngularJS? The angular-photo-slider becomes all ...
1
vote
2answers
28 views
Angular JS - How to make form validation as global service? Best practice
I have a few forms with data validation in my Angular app.
All forms contains same validation messages like this:
<span class="formValidationError" ...
0
votes
1answer
30 views
angular directive to style a checkbox
i am trying to style a checkbox with an angular directive and i came up with a simple solution. My idea is to have in HTML an input like this
<input type="checkbox" class="checkbox" ...
0
votes
1answer
12 views
Get data from PouchDB callback function?
I need to get all the documents from PouchDB database and store them in $scope variable (AngularJS). Can anyone tell me how to get the 'doc' from the callback function?
db.allDocs({include_docs: ...
1
vote
2answers
32 views
AngularJS directive - ng-class in ng- repeat should it be a $watcher to toggle style?
I am currently implementing a spike to further my understanding on angular directives etc.
The premise is to create a FX watch list on a number of currency pairs.
My data feed is set up for my price ...
0
votes
1answer
22 views
AngularJS remove href
I want to remove href attribute from 'a' tag (work like a plain text) and I use this code in my directive file:
.directive('rhHasLinkFor', function () {
return{
priority: 10000,
...
0
votes
2answers
29 views
AngularJS: $watch not firing when value changed in directive
I've got custom directive that add's a property to the scope in side the link function, then it add's a watch to it. If i changed the value of the scope property from the controller the watch gets ...
0
votes
2answers
24 views
angularjs import makes html page not functional
I have very simple code
<!DOCTYPE html>
<html ng-app="app">
<head>
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css" />
<link ...
-3
votes
0answers
23 views
Do you know js lib which realize two way binding and uses html as data backend? [on hold]
I am looking for a library which allows to describe a model declaratively and gives methods like get / set / push / filter etc. The difference between angular, knockout and this lib is that it should ...
-3
votes
1answer
21 views
Get Tweets from Angularjs [on hold]
I'am trying to get tweets from a twitter acount but only using angularjs, whitout php or another language.
I have tried but I couldn't. and also I have to use the 1.1 twitter api
0
votes
2answers
19 views
Can't get Angularjs to update view when model updates
I am an Angular newbie and I'm stuck. I have some code on jsbin.com --->(http://jsbin.com/ratageza/7/edit?html,js,output)
It's not pretty but it's showing essentially what I am doing.
In my real ...
0
votes
1answer
29 views
How to create a nested $resource - AngularJS
I'm trying to figure out how to create a nested $resource. I have come up with the following, which seems to work..ish, but seems awfully wrong. Hoping someone can point me in the right direction.
My ...
0
votes
1answer
18 views
Angular js and bootstrap ui date picker not open in chrome on clicking on icon
I have date picker in angular using bootstrap UI. This code is working very fine in IE but its not get open in chrome. As after calling the method open () input box get focused but date picker popup ...
-2
votes
0answers
29 views
AngularJS Browser Back Button [on hold]
I'm having issues with the browser's back button with AngularJS. My index.html is loaded dynamically. When you click a link on this page, a partial is loaded. Once this new html is displayed, if I ...
1
vote
1answer
34 views
How can I display different menu items based on the user's role in angularjs?
I'm using the meanjs stack to write a web application. I need to display a dropdown menu to all users (logged in or not), then add more elements to the dropdown when a user is logged in.
For ...
0
votes
2answers
46 views
How to check all checkbox in my case?
i am trying to check all checkboxes in angular's way.
I have the following codes:
<div>
<div class="checkbox">
<input ng-click="checkAll =! checkAll" ...
0
votes
1answer
25 views
Angularjs selectable highlighted rows
Hi I have following table in ng-repeat
<div ng-repeat ="item in items">
<span>{{item.name}}></span>
<span>{{item.age}}></span>
</div>
what I want to ...
0
votes
1answer
34 views
How can I detect if an Angular app has been initialized from outside Angular?
While developing the lift-ng plugin, I have noticed an issue where sometimes the server sends events via comet to the client prior to angular initialization. This causes events to be silently missed ...
1
vote
0answers
22 views
UI-Router $state doesn't change the URL or state
Here is my config page for my states:
//
// THESE ARE THE GUEST ACCESS LEVEL AND ROUTES
//
var guest = [];
guest.push({
state: 'guest',
abstract: true,
url: '^',
templateUrl: ...
0
votes
1answer
31 views
AngularJS how to hook into the head tag from the template of the ng-view
I'm used to using Laravel's Blade template engine, but now that I'm learning to use AngularJS on the front-end, I have given up blade.
I am trying to include some page specific script tags that I ...
0
votes
2answers
42 views
js: undefined local variable or method `current_user'
I've js file with embeded ruby code:
function MyController($scope) {
$scope.sayHello = function() {
var hello = <%= current_user.name %>;
$scope.greeting = hello;
};
}
But I've ...
0
votes
1answer
26 views
AngularJS changing class with function
I have an Agular app where I have a list of US states layout out as a UL in a "block" fashion.
http://jsfiddle.net/Mrbaseball34/3u375/
Now, when the states variable has an entry, the class on the ...