Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

All Questions

Filter by
Sorted by
Tagged with
2 votes
1 answer
124 views

A simple AngularJS application for counting the number of gallons of paint

I created a simple Angular JS application for calculation gallons of paint needed to paint the ceiling of a room. I assume one gallon covers 350 square feet and use it as a constant. Also, I round up ...
Kate Herasimenak's user avatar
0 votes
1 answer
465 views

Generating a list of menus with AngularJS

Some days ago, I decided to start learning a JS framework in order to gain skills and become more useful at work. I choose Angular for the purpose, and started learning it by building up my "...
Zoltán Schmidt's user avatar
5 votes
1 answer
1k views

Using chartJS in Angularjs to plot IOT data

I am a Javascript and AngularJS beginner. Below is the code inside my chartController. What this does is get IOT data from a back-end call and display it in my front-end with a chart. There are two ...
DewiJones's user avatar
0 votes
1 answer
317 views

AngularJS calendar directive

Is adding CSS to template via <style> the right approach? How should I structure the application? Plunker link to the code ...
Nagesh's user avatar
  • 21
0 votes
1 answer
4k views

Dynamically set angular directive template

I have recently upgraded to AngularJS 1.5 and as the title says, I want to use different templates depending on a value in the ...
Backer's user avatar
  • 103
4 votes
1 answer
350 views

Implementing tabs with panes

I am new to AngularJS. Here is my basic code for implementing Tabs with Pane. Eventually, each tab-pane will have a form and a ui-grid that will display data from the DB. Can I use separate ...
Naresh Raj's user avatar
7 votes
2 answers
588 views

Beginner's Calculator code

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

Creating forms using angular

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
2 votes
1 answer
248 views

Angular JSON weather app

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
1 answer
486 views

User registration factory for AngularJS + Firebase app

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
2 votes
1 answer
97 views

Ad filtering in Angular factory

I'm an 'old school' programmer (C, C++), and I have step-by-step, algorithmic thinking. I'm writing some code in Angular + Django and I know that this code is ugly but I don't have any idea how to ...
Hegol99's user avatar
  • 21
2 votes
2 answers
296 views

Handling rejected HTTP responses with status 401

I'm kinda new to javascript and have question about it. Now my practical project is growing a bit bigger. I got the following if else statement. Is it possible to refactor this ? Should i use an use ...
Greg's user avatar
  • 193
1 vote
1 answer
193 views

Resumé builder app

Wrote this an hour or so after learning some basics. Took me a while because I had to write it in a way to fit the previous structure of my page. Basically, there are three rows of data. There has to ...
Lansana's user avatar
  • 387
3 votes
1 answer
352 views

Angular todo list

I'm not sure whether my code looks good or not: ...
Alex Shmatko's user avatar

15 30 50 per page