Questions tagged [angular.js]
Code written using version 1 of the AngularJS open-source JavaScript framework. Use 'angular-2+' for code using later versions.
15 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 ...
7
votes
2
answers
197
views
Interdependent color swatch widgets
To illustrate some algorithmic problems I found while writing this code review, I needed to include a live demonstration, which I implemented using a Stack Snippet with Angular.js.
The demonstration ...
6
votes
1
answer
232
views
Online store for pies - Part 1: Create your account to buy delicious pies
I've got a goal and that goal is to become an Angular expert. So what better way of learning than to create an online store for pies, right? I've just finished the registration part and would like ...
6
votes
1
answer
914
views
Shopping cart simulator
I have tried to simulate a cart (only partially completed). I just wanted to see how the code upto this point can be enhanced. I am trying to learn about the usage of ...
6
votes
1
answer
2k
views
Improvements to an Angular ScrollSpy module
Things that I'm not sure about:
Whether this works in all use cases - alongside routing and within templates etc
Am I polluting the scope with all these variables? This seems to be the easiest way 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 ...
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 ...
4
votes
2
answers
7k
views
Simplifying an AngularJs directive that counts the number of characters entered in a textarea
I am trying to implement an AngularJS directive that would count the number of characters entered into a textarea and display it to the user.
Note: it will actually become much more complex later on ...
4
votes
1
answer
2k
views
Handling combinations of optional parameters for an Angular filter pipe
This is a simple implementation of an ng2 filter pipe, which can currently take 2 optional facets: <string>status and ...
3
votes
2
answers
616
views
Splice from Array if index matches
This code loops through an array called $rootScope.watchlist (uses AngularJS). It gets the current iteration of the loop to access that x iteration through ...
2
votes
1
answer
88
views
Simple console directive, revised using provider
I recently created my first directive based on jQuery plugin and I asked for review here: Angular console like window - first directive
I've edited my directive so now instead of ...
2
votes
0
answers
896
views
Simple clicker game
I have started my clicker game using angular.js about week ago. I have finished current functionality first night, but still have feeling of misunderstanding some basic approaches.
This is sources ...
2
votes
1
answer
988
views
Changing page language using a service
I'm rebuilding a basic webpage using AngularJS, and want to implement changing languages when clicking an icon. So far I've made a service called 'langService', ...
1
vote
1
answer
148
views
Angular console like window - first directive
I've asked question on SO how to rewrite jQuery code to Angular. Because I got no answers I've tried to create something by my own.
This is my version of code:
...
0
votes
1
answer
2k
views
Angular version of FitText
This project has evolved a lot since I started learning Angular. I'm pretty happy with it now, and I'm wondering if there's anything I can improve upon, or have forgotten at this point...
HTML
...