All Questions
18 questions
2
votes
1
answer
120
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 ...
0
votes
1
answer
462
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 "...
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 ...
0
votes
1
answer
315
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
...
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 ...
4
votes
1
answer
339
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 ...
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 ...
2
votes
1
answer
63
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 ...
0
votes
1
answer
109
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 ...
2
votes
1
answer
246
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:
<...
2
votes
1
answer
484
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 ...
2
votes
1
answer
95
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 ...
2
votes
2
answers
292
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 ...
1
vote
1
answer
191
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 ...
3
votes
1
answer
350
views
Angular todo list
I'm not sure whether my code looks good or not:
...