Skip to main content

Questions tagged [angular.js]

Code written using version 1 of the AngularJS open-source JavaScript framework. Use 'angular-2+' for code using later versions.

26 votes
5 answers
2k views

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 ...
Phrancis's user avatar
  • 20.5k
15 votes
2 answers
14k views

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 ...
Matias Cicero's user avatar
2 votes
3 answers
9k views

I wrote a script for a timer. Is there any way to improve the code, with fewer number of lines? JSBIN ...
fruitjs's user avatar
  • 185
4 votes
1 answer
3k views

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: ...
Embrioka's user avatar
  • 323
6 votes
2 answers
150 views

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 ...
user avatar
2 votes
0 answers
1k views

I wrote an AngularJS wrapper for p5.js called angular-p5: ...
wxactly's user avatar
  • 121
2 votes
1 answer
512 views

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 ...
Siraj M's user avatar
  • 115
6 votes
2 answers
36k views

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, ...
Jon Mitten's user avatar
0 votes
1 answer
8k views

I have an array called list bound to the current application scope $scope that is a user order-able list of UI components. When ...
Luke's user avatar
  • 349
4 votes
2 answers
438 views

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 ...
Razvan Zamfir's user avatar
3 votes
1 answer
12k views

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 ...
Geraint's user avatar
  • 273
2 votes
1 answer
4k views

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 ...
Red's user avatar
  • 227
5 votes
1 answer
133 views

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 ...
Mercer's user avatar
  • 177
5 votes
1 answer
817 views

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 ...
Ronnie's user avatar
  • 151
21 votes
1 answer
15k views

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: ...
Elfayer's user avatar
  • 313

15 30 50 per page
1
2 3 4 5
24