Questions tagged [angular.js]
Code written using version 1 of the AngularJS open-source JavaScript framework. Use 'angular-2+' for code using later versions.
354 questions
26
votes
5
answers
2k
views
Cardshifter game lobby
We've been hard at work creating a browser-based GUI/Client for playing the Cardshifter TCG for the past week or so. Today, I just finished doing a pretty complicated layout for the chat lobby, along ...
15
votes
2
answers
14k
views
AngularJS - REST + Authentication service
I have a REST web service that uses OAuth 2 for authenticating and authorizing requests.
I have an endpoint, that when receiving the correct credentials, responds with an access token that will be ...
2
votes
3
answers
9k
views
Timer stop watch in AngularJS
I wrote a script for a timer. Is there any way to improve the code, with fewer number of lines?
JSBIN
...
4
votes
1
answer
3k
views
AngularJS recursive function call with $timeout
I have created a recursive function call in AngularJS and just wonder if is there a better way to solve this problem? The code works perfectly.
My code is the following:
...
6
votes
2
answers
150
views
Optimize Game of Life
I'm a beginner at coding and the past days I tried to write the famous "Conway's Game of Life" in Angular.js. Right now I'm done with the code and the game works. But if the size of the ...
2
votes
0
answers
1k
views
AngularJS wrapper for p5.js - p5 directive and service
I wrote an AngularJS wrapper for p5.js called angular-p5:
...
2
votes
1
answer
512
views
Is returning promise form angular service bad?
What is the problem when I return a promise from angular service instead of Observable?
If it's a matter of any manipulation or side-effect, that I can easily do ...
6
votes
2
answers
36k
views
JavaScript filter() on JSON object?
I'm building a web interface for a home monitoring sensor array, and fetching JSON from the backend framework. I want to start putting statistics together for monitoring different areas of the home, ...
0
votes
1
answer
8k
views
Move an element up / down an array in Javascript
I have an array called list bound to the current application scope $scope that is a user order-able list of UI components. When ...
4
votes
2
answers
438
views
Blogging application with Codeigniter back-end and AngularJS front-end
I am working on a blog application with Codeigniter 3.1.8 and AngularJS v1.7.8.
The Dashboard of the application is "pure" Codeigniter, with Models, Controllers, and views, while the fronted is made ...
3
votes
1
answer
12k
views
Convert all dates in an array to date format
I'm returning an array containing dates (and other things) from an API, then looping through the array on the front end to convert them into dates
The backend uses Node.Js and queries a mySql ...
2
votes
1
answer
4k
views
Script to load controllers dynamically for AngularJS
I would like to hear your thoughts, idea's or feedback on the following code.
Ive added to code to github.
https://github.com/redbullzuiper/angularjs-dynamic-controllers
Usually when you attach a ...
5
votes
1
answer
133
views
Property management
I was looking to see if anyone could help me come up with a cleaner/DRY methods in duplicate of doing something like this?
I would like to get the features that repeats in the 2 controllers to ...
5
votes
1
answer
817
views
Flash embed angular directive
I have an app that uses HTML5 video and our customer still needs to support IE8 - Gross.
Anyway, I came up with this directive in AngularJS for embedding a SWF object for when I need to fallback to ...
21
votes
1
answer
15k
views
Draggable Resizeable Box
This is my first angular code. I've been working with jQuery for a while, so I don't have the same approach. I'm looking for advice and code improvement.
The following code has 3 directives:
...