Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Simple AngularJS app with Firebug lite
<!DOCTYPE html>
<html ng-app>
<meta charset="UTF-8">
<title>Angular example (with Firebug lite)</title>
<script src=""></script>
<script src="" ></script>
<link href ="" rel="stylesheet" ></link>
<script type="text/javascript">
function ContactController($scope)
$scope.contacts = ["", ""];
$scope.add = function()
$scope.newcontact = "";
<body ng-controller = "ContactController">
<div class = "hero-unit">
<h4>New Contact:</h4>
<form class = "form-horizontal"
ng-submit = "addTodo()" >
<input type = "text"
size = "30"
placeholder = "Add new email here"
ng-model = "newcontact" />
<button class = "btn btn-primary"
ng-click = "add()" >Add</button>
<h4>Current Contacts</h4>
<li ng-repeat = "contact in contacts">{{ contact }} </li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.