This is the AngularJS app I built while completing the Lyda.com AngularJS course Creating a Calculation Tool with AngularJS 1. I have made the code more readable than what was taught in the course and added a few more finishing touches.
The app compares the cost of running different types of bulbs, depending on the price of electricity and how many hours a day the bulb is used. The user can also set the brightness of the bulb, so they can see what the equivalent bulb wattage is across all the different types of bulbs.
Simply load the index.html
file in your modern browser.
A copy of AngularJS is included in the repository. There are no other dependencies.
This project consists for the following files:
index.html
- the main HTML file to directly load in a browserassets/
- directory containing images, JavaScript and CSS filesimages/
- directory containing images of bulbs, arrows and screen shotangular.min.js
- a compressed version on the AngularJS librarycalculator.css
- the cascading style sheet for the appcalculator.js
- where the AngularJS app and a controller is defined
Got an idea of how to make the bulb calculator better? Then submit a pull request to get the balling rolling.