Tagged Questions
AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Controller (MVC) capability and reduce the amount of JavaScript needed to make web applications functional. These type of apps are also known as Single-Page Applications.
0
votes
0answers
4 views
Using Intellij for editing .js-files causes Jshint-errors
I am using Intellij 12.1.6 for a web project generated by Yeoman. The project runs JSHint when files are updated and I get a lot of these warings:
line 11 col 10 Expected 'restrict' to have an ...
2
votes
3answers
27 views
How to display a hidden element in AngularJS?
Is it possible to have an element hidden by default (so that it does not show if JavaScript is off) and have AngularJS override the style to display it?
I have a function on the scope that should be ...
0
votes
0answers
16 views
How to use “data-ng-view” in AngularJs <Resolved]
Here is my index.html
<!DOCTYPE html>
<html data-ng-app="BookApp" xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="Scripts/jquery-2.1.0.js"></script>
...
0
votes
0answers
18 views
ng-submit from bootstrap popover
The following jade template displays a login form (loginForm) in a popover. The same form markup when instead rendered as a part of a view in a route works fine, but when placed into the popover as ...
0
votes
0answers
8 views
Adobe AIR API specific code inside AngularJS
In an Adobe AIR app I had used AngularJS. App has some AIR specific code (line 3 and 4) which Angular isn't able to understand and thus gives an error. Both AngularJS and Adobe AIR are essential to ...
0
votes
1answer
16 views
Why is the function in angular's DI inline annotation a array element?
I have a question for the angularjs folks here.
So, I am using angular for quite a while now. However, every time when I am writing a new Controller or something that is using dependency injection, ...
2
votes
1answer
24 views
In AngularJS, what's the difference between $scope and the native context?
I'm just starting to look at Angular, but having a hard time wrapping my head around the need for $scope. Javascript already has a concept of scope via the context (i.e. this) and allows programmers ...
0
votes
1answer
20 views
angular-strap tooltip not working in ng-repeat
Question: Is there a bug in angular-strap? Or do I misunderstand how Angular works, and this is expected?
I've created a plunker to demonstrate the behavior.
What I want:
I want to show a different ...
0
votes
1answer
24 views
Can't get simple AngularJS $http call to work
I'm assembling my first AngularJS app. My controller is making a $http.get() call. The url it's using is correct, but it ends up calling the "error" method with a 404. This is even more confusing ...
0
votes
2answers
28 views
two images on top of each other
I am using AngularJS to create a new table (with ngRepeat) when I receive new data via Ajax.
Part of each table row is an image.
Under certain conditions I want to display an overlay image (which is ...
0
votes
1answer
26 views
Can I use an object method to filter an ng-repeat?
I'm new to angular and Javascript OOP in general. I am hoping to build a reusable angular component where all the control can be tied to an instance of a javascript object. One weird behavior I've ...
0
votes
0answers
19 views
angular directive with ng-model set at runtime (i.e. inside ng-repeat)
I'm trying to create a directive for on/off button-groups using ui-bootstrap where I bind the ng-model to a $scope value at runtime inside an ng-repeat. It works fine if I add the ng-model directly as ...
0
votes
0answers
9 views
ngClick not firing when $swipe is bound
I have an ngClick directive on elements that are also bound to $swipe. The ngClick doesn't fire (it was before the $swipe was added).
I'm using jQuery mobile combined with AngularJS.
Interestingly, ...
0
votes
1answer
16 views
Angularjs IE7 issue
i have just got a basic app going but i cant get it to work in IE7
Here is the HTML:
<!DOCTYPE html>
<html lang="en" id="ng-app" ng-app="myapp" xmlns:ng="http://angularjs.org">
...
0
votes
0answers
39 views
How do I handle a SignalR event from within an Angular service?
I have an Angular app that has a service wrapping up SignalR interaction. I can send data to the server from both the page and within an Angular service but can only handle events from the page ...