AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Controller (MVC) capability, 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
2 views
AngularJS Login approach
Currently, I'm doing something like:
<div login-page ng-if="loggedIn == false"></div>
<div main-page ng-if="loggedIn == true"></div>
I'm using angular-http-auth to intercept ...
1
vote
1answer
10 views
Angularjs ng-click not firing under ng-bind-html-unsafe
This is the directive
aomApp.directive('aomAlert', function ($rootScope,$compile) {
return {
restrict:'EA',
transclude:true,
replace:true,
scope: {type: '=', msgCollection: '=', ...
0
votes
1answer
4 views
Angular scope in jasmine controller tests
Trying to understand how do jasmine tests work.
I've got a module and a controller:
var app = angular.module('planApp', []);
app.controller('PlanCtrl', function($scope, plansStorage){
var plans = ...
0
votes
0answers
3 views
Recognizing AngularJS syntax in WebMatrix 3
I've been using WebMatrix because of nodejs and backbonejs. I've recently started to learn angular and I want webmatrix to recognize angular's syntax and stop telling me my ng's are unknown. My code ...
0
votes
0answers
19 views
should I use closures with angular scripts?
This question might sound a bit stupid, or may be found somewhere on the forum ( I looked up about 13 pages of questions related to the subject and haven't found one ), but I really need to know.
...
0
votes
1answer
13 views
Recycling AngularJS functions
I am pretty new with AngularJS, but was wondering how to create commonly used functions outside the scope of a controller.
For example, I pretty often need to call a function to start a "Loading" ...
0
votes
0answers
12 views
Adding Directives to the DOM through an API causing binding issues
I would like to know whether the pattern we're following is a proper practice in AngularJS and whether there is a better way of doing things. The reason I ask if because it has caused a lot of trouble ...
0
votes
2answers
13 views
Angular: Binding objects to <select>
Firstly, I should say that I have only attacked Angular.js for 2 days now so I may be approaching this whole thing wrong.
My example "Person" object (or model if I understand) has two properties, ...
0
votes
1answer
14 views
AngularJS Filter being called related to number of scopes on the page?
I have a page that has a number of directives. There are a number of directives in the header/navigation each with there own scope. There is also a ng-repeat of 25 items and each one of those ...
0
votes
0answers
12 views
why is the alert in the event not popping?
I have an alert in an event that fires fine from my development environment:
auth.js
$rootScope.$on('event:auth-loginRequired', function () {
alert('event:auth-loginRequired');
});
however, in ...
0
votes
1answer
5 views
Cant see angular sources in chrome devtools
So I am getting errors in my javascript for my angularJS app but I can't see where they are at. If I open the sources tab in the debugger and cant see any of my angularJS stuff. Here is an example of ...
0
votes
0answers
9 views
ASP.NET Web Api. IEnumerable dispose error
So i have this piece of code for retrieving my list of employees from my database
private AngularFunContext db = new AngularFunContext();
// GET api/Default1
public ...
0
votes
1answer
14 views
angularjs html5mode not working
If I don't use the html5mode, everything works fine. But when I activate it I keep getting 404 error on every request.
Here's the relevant code:
$urlRouterProvider.otherwise('/404');
...
0
votes
1answer
25 views
Naming issue with AngularJS controllers
I just started playing around with AngularJS, and I really love it so far. I did however stuble upon a case that had me quite puzzled, when trying to use the angular bootstrap directives for creating ...
0
votes
1answer
11 views
Periodically updating scope variable with event
I'm listening to an event within my controller:
$scope.$on('time:update', function(event, args) {
console.log('Update -> ' + args.time);
$scope.time = args.time;
});
My view is not printing ...