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.

Filter by
Sorted by
Tagged with
7 votes
2 answers
633 views

I am trying to learn AngularJS as a start to my revival of learning, I think that I am getting the hang of it so far, but would like to see what I can do differently with some super simple ...
Malachi's user avatar
  • 29.1k
2 votes
1 answer
89 views

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 ...
Misiu's user avatar
  • 349
1 vote
1 answer
150 views

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: ...
Misiu's user avatar
  • 349
0 votes
1 answer
1k views

I'm a .net programmer with littler experience in AngularJs and Javascript. I have implemented an ...
Jakob's user avatar
  • 984
2 votes
3 answers
11k views

This is the code for an AngularJS controller that I've written: ...
cst1992's user avatar
  • 151
0 votes
1 answer
72 views

I'm very new to AngularJS and just started in a new project which uses AngularJS for Web UI. I was looking into our code and found out that we have huge functions in controllers. Like, one 100-LOC ...
lexicore's user avatar
  • 223
0 votes
1 answer
121 views

I am a newly developer in angular. I want to do some homework to create forms with Angular. I spent nearly a week to do it, but my teacher was not really satisfied about it. I tried to follow some web ...
fujitsu4's user avatar
0 votes
2 answers
362 views

I have an array of API objects, below is an example of one object: ...
Leon Gaban's user avatar
0 votes
1 answer
6k views

I'm trying to improve my Angular skills by writing some basic applications that use a particular feature. The following application uses the UI Bootstrap modal to add users to a list, or remove them ...
Geraint's user avatar
  • 273
0 votes
1 answer
189 views

I'm using the MEAN stack to make a small chat app, which will soon support braided messaging. This is my first Angular app so I am not sure how I'm doing on the front end portion in terms of keeping ...
tscizzle's user avatar
  • 277
11 votes
1 answer
769 views

I have been learning AngularJS and have written my first app. It's a Hangman AI which learns words and guesses the solution based on the words it knows. Please look over my code and provide some ...
Tom Hanson's user avatar
2 votes
1 answer
253 views

I'm pretty new to Angular. I wrote a weather app and need my code reviewed. I especially need help on best practices for handling edge cases on the response from the JSON endpoint. Here's the HTML: <...
parth's user avatar
  • 121
2 votes
2 answers
4k views

Two weeks ago I started writing some Javascript and AngularJS code for a customer. As a proud newby I must also be aware of the dangers on the big bad Internet. In particular vulnerabilities such as ...
RvdM's user avatar
  • 21
2 votes
1 answer
497 views

The goal for this code is to provide a semi-secure and privileged method of user registration via a secret code that is stored as a key in the Firebase database. Subscribers to a mailing list were ...
Mox's user avatar
  • 257
0 votes
1 answer
87 views

I found there are two methods to code an if-else statement with a timeout function. Two of these scripts work fine, but which ...
Wee Hong KOH's user avatar
2 votes
1 answer
648 views

I found creating radio buttons in my application a bit of a hassle in terms of having to configure the HTML to do what I wanted when the user clicks/unclicks the items etc. I figured reducing it to a ...
dwjohnston's user avatar
  • 1,358
2 votes
2 answers
107 views

I'm trying to build a reusable object cache for Angular. The goal is to: Cache objects by type Prevent collisions and conflicts Find objects by like property Ensure caches are separated by the logged ...
G. Deward's user avatar
  • 204
5 votes
1 answer
892 views

There are two methods I am using here for merging day, month and year. First one ...
Muhammed's user avatar
  • 303
2 votes
1 answer
416 views

Here is the problem statement: Take a second to imagine that you are in a room with 100 chairs arranged in a circle. These chairs are numbered sequentially from One to One Hundred. At some point in ...
Rahul Desai's user avatar
1 vote
2 answers
148 views

This is what my viewObject looks like: ...
Leon Gaban's user avatar
1 vote
1 answer
82 views

I wonder to know if there is any bad smell on my practice for i18n on Angular. I put the I18n translating function on Angular controller (because I don't know how to put it on HTML template file) And ...
poc's user avatar
  • 605
3 votes
0 answers
78 views

I have some nokia mobile models with some offers. There are two objects, one for nokia models with price, another one for offers. For example I have offers for these two models: "brandname": "Nokia" ...
komal's user avatar
  • 31
3 votes
1 answer
3k views

This is my first angular application. I am sure there must be many mistakes like coding conventions, naming conventions or implementation mistakes like what goes where. Could you please review this ...
Naga Sandeep's user avatar
3 votes
0 answers
98 views

I've been working on an app based on the MEAN Framework. I have got the app working but I just wasnt sure whether my coding structure and standard was good enough, meaning does it adhere to the ...
Lorenzo von Matterhorn's user avatar
1 vote
1 answer
101 views

I am relatively new to Angular and need to put together an application to update / save / display values. The code is working, but I wanted your input the make sure that I am doing this 'the angular ...
Olivier De Meulder's user avatar
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
0 votes
1 answer
147 views

I have built real-time markdown editor in order to learn AngularJS by practice. I think what I'm trying to do can be done a better way. Any suggestions appreciated. Here's my code: ...
tanmay's user avatar
  • 141
4 votes
1 answer
89 views

You have one form and you can register a user. It can be god or mortal, but it also requires all the information to let you save the user or the change. When you have all the registers that you want ...
JorgeAlberto's user avatar
0 votes
2 answers
101 views

I have to pass a bunch of inputs and outputs between two Angular controllers and I've come up with a way to do it using $broadcast. I'm using an "if" statement to make sure the inputs match the ...
Raydot's user avatar
  • 125
2 votes
0 answers
449 views

I am trying to create a basic angular template where all files are sorted into a modular structure and referenced using the browserify require method. I am very new to browserify and the CommonJS-...
Neil's user avatar
  • 121
3 votes
1 answer
344 views

I have been an Angular developer for more than 5-6 months and mostly I learned with my experience. However, recently after submitting code to some competition, I got a feedback that AgularJS best ...
codeomnitrix's user avatar
2 votes
1 answer
92 views

I have completed an exercise where there are 4 different color boxes and 1 main box below them that is blank, when you click on one of the colored boxes, the main box changes to the color of the box ...
WinchenzoMagnifico's user avatar
2 votes
1 answer
989 views

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', ...
Miha Šušteršič's user avatar
2 votes
0 answers
113 views

In the app I'm creating, when a user upvotes a post, the post should be upvoted, as well as the user that wrote the post. But this updates two MongoDB documents. This presents a number of issues. I'll ...
anon's user avatar
  • 183
2 votes
0 answers
279 views

My Application looks something like this (Screenshot). To Control the URL Routing i am using a Angular Js Router. On Click of Store of the Side Panel the StoreList Appears. And on Click of the Edit, ...
Mitesh Manani's user avatar
3 votes
1 answer
417 views

I am an Angular.JS beginner and this is my first application. I hope you give me some advices what to do to have better, optimized code. This application manages the data from database, shows it in ...
mrJoe's user avatar
  • 175
2 votes
0 answers
86 views

I've started out working on a larger project using Angular for the first time. For visual feedback, I'm using Waves (Github) (you can see a demo page here). The standard way to use Waves is to ...
Etheryte's user avatar
  • 654
1 vote
2 answers
189 views

I am writing a function for my node/angular app that will prompt the user with a random question that he was not asked before. To achieve this I wrote this function: ...
Idos's user avatar
  • 113
7 votes
1 answer
2k views

My AngularJs app is currently working fine. I'm working on modularity, refining my code design, and making it more readable. I have a app.js file that contains the ...
inspired's user avatar
  • 323
4 votes
0 answers
122 views

On my site I have a navbar component that I want to customize for each and every ng-view I end up loading. Currently I'm doing ...
battle2048's user avatar
0 votes
1 answer
343 views

I'm using a factory for my $http get requests. When I pull single json objects from the $http, it works pretty quickly I now have items coming through as an array. It is very inefficient, & ...
Ycon's user avatar
  • 229
6 votes
1 answer
107 views

This is an object exposed to the view and is being used on directives within the same view. The directives need to track changes on the ctrl.filters.applied object. ...
Wiley Marques's user avatar
3 votes
1 answer
189 views

I'm new in cordova / angularJS and I wonder how much responsibility a controller can have. This particular one validates users entry data, display messaging, takes pictures calling the camera API, ...
tribet's user avatar
  • 491
8 votes
1 answer
662 views

I have the same functionality in two controllers and I want to refactor to place it in a shared method that both controllers can access. I was thinking on creating a separate service called "Camera" ...
tribet's user avatar
  • 491
11 votes
1 answer
835 views

I am trying to build a food search app. I am using Angular and Spring. I am currently using the yelp API, but it's done on the Java side. I think what I have achieved is really bad design. It works, ...
OPK's user avatar
  • 285
2 votes
1 answer
214 views

I am creating a website for my buddies and I to track all of our offensive softball stats. I am getting tired of maintaining a huge excel spreadsheet and emailing it out every week, so a website is ...
Shak3nNotStur3d's user avatar
4 votes
1 answer
242 views

I have wrote some service in AngularJS that use defer, can you check my code and tell me if I getting it right? Service (I dont really like name: ...
rechandler's user avatar
2 votes
1 answer
109 views

I wrote a Cordova plugin for an app that I'm working on, and now I'm trying to write an Angular definition to wrap my plugin. So far, I've followed the model in ng-cordova.js: ...
Brian's user avatar
  • 433
3 votes
0 answers
79 views

I've just done my first Angular.js project and can't help but feel I have too much code outside of the framework. jsFiddle This is a QA form scoring page that will eventually store it's results in a ...
Simon's user avatar
  • 139
2 votes
1 answer
241 views

Could you please review the below AngularJS service. What it does is centralize all (relevant) HTTP action calls. Do you see any chances for improvement?: ...
kbd's user avatar
  • 143

1 2
3
4 5
8