Skip to content

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
What would you like to do?
HTML + Angular displaying Firebase RGB values and changing background color accordingly
<!DOCTYPE html>
<html ng-app="app">
<body ng-controller="Ctrl">
<div class="header">
<h1 ng-style="{'background-color': 'rgb(' + data.r + ',' + data.g + ',' + data.b +')'}">
Afro Circus! {{ data.r }} : {{ data.g }} : {{ data.b }}
<script src=""></script>
<script src=""></script>
<script src="/index.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment