diff --git a/example/buzz/buzz.css b/example/buzz/buzz.css
deleted file mode 100644
index 5fd5763d585f..000000000000
--- a/example/buzz/buzz.css
+++ /dev/null
@@ -1,89 +0,0 @@
-body {
- background: -webkit-gradient(linear, left top, left 100, from(#bbb), to(#fff));
- background-repeat: no-repeat;
- margin: 0px;
- font-family: sans-serif;
- font-size: 12px;
-}
-
-body > div {
- border-top: 1px solid white;
- border-bottom: 1px solid black;
- text-align: center;
- background: -webkit-gradient(linear, left top, left bottom, from(#CCC), to(#888));
- -webkit-background-origin: padding; -webkit-background-clip: content;
-}
-body > div button {
- margin: 5px;
-}
-
-body > div span:FIRST-CHILD {
- float: left;
- font-family: monospace;
- font-size: 1.5em;
- color: black;
- padding: 2px 5px;
-}
-
-body > div span:last-child {
- float: right;
-}
-
-ul {
- list-style: none;
- padding: 10px;
- margin: 0;
-}
-
-body > ul > li {
- border: 1px solid black;
- margin: 15px 5px;
- padding: 0;
- -webkit-box-shadow: 5px 5px 5px #888;
-}
-
-body > ul > li > h1 {
- margin: 0;
- background: -webkit-gradient(linear, left top, left bottom, from(#ddd), to(#999));
- font-size: 13px;
- border-bottom: 1px solid black;
-}
-
-h1 > img,
-li > img {
- max-height: 30px;
- max-width: 30px;
- vertical-align: middle;
- padding: 3px;
-}
-
-a > img {
- margin-right: 5px;
- margin-top: 5px;
-}
-
-body > ul > li > h1 > a:last-child {
- float: right;
- margin: 10px;
-}
-
-body > ul > li > div {
- background-color: white;
- background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd));
- margin: 0;
- padding: 10px;
-}
-
-body > ul > li ul {
- margin: 0;
- padding: 0;
- margin-left: 5px;
- border-left: 5px solid lightgray;
-}
-
-body > ul > li ul > li {
- margin: 0;
- padding: 10px;
- background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd));
-}
-
diff --git a/example/buzz/buzz.html b/example/buzz/buzz.html
deleted file mode 100644
index f2bf21ac046a..000000000000
--- a/example/buzz/buzz.html
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- <angular/> Buzz
-
- filter:
-
-
-
- user:
-
-
-
-
-
- -
-
-
- {{item.object.content | html}}
-
-
-
-
-
-
-
-
-
diff --git a/example/buzz/buzz.js b/example/buzz/buzz.js
deleted file mode 100644
index 7e7f2f664429..000000000000
--- a/example/buzz/buzz.js
+++ /dev/null
@@ -1,46 +0,0 @@
-angular.module.ng('myApplication', function($resource){
- this.Activity = $resource(
- 'https://www.googleapis.com/buzz/v1/activities/:userId/:visibility/:activityId/:comments',
- {alt:'json', callback:'JSON_CALLBACK'},
- {
- get: {method:'JSON', params:{visibility:'@self'}},
- replies: {method:'JSON', params:{visibility:'@self', comments:'@comments'}}
- });
-}, {inject:['$resource']});
-
-function BuzzController() {
- this.$watch('$location.hashPath', this.userChange);
-}
-BuzzController.prototype = {
- userChange: function() {
- this.userId = this.$location.hashPath;
- this.activities = this.Activity.get({userId:this.userId});
- },
-
- expandReplies: function(activity) {
- var self = this;
- if (activity.replies) {
- activity.replies.show = !activity.replies.show;
- } else {
- activity.replies = this.Activity.replies({userId:this.userId, activityId:activity.id}, function() {
- activity.replies.show = true;
- });
- }
- }
-};
-
-angular.widget('my:expand', function(element){
- element.css('display', 'block');
- this.descend(true);
- return function(element) {
- element.hide();
- var watch = element.attr('expand');
- this.$watch(watch, function(value){
- if (value) {
- element.delay(0).slideDown('slow');
- } else {
- element.slideUp('slow');
- }
- });
- };
-});
diff --git a/example/index.html b/example/index.html
deleted file mode 100644
index 12f88cccd9f0..000000000000
--- a/example/index.html
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/example/personalLog/personalLog.html b/example/personalLog/personalLog.html
deleted file mode 100644
index 483a37b8371b..000000000000
--- a/example/personalLog/personalLog.html
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
- Personal Log
-
-
-
-
-
-
-
-
-
-
-
-
-
- Logs:
-
- -
- {{log.at | date:'yy-MM-dd HH:mm'}} {{log.msg}}
- [x]
-
-
-
-
-
diff --git a/example/personalLog/personalLog.js b/example/personalLog/personalLog.js
deleted file mode 100644
index c22b8702e4a6..000000000000
--- a/example/personalLog/personalLog.js
+++ /dev/null
@@ -1,72 +0,0 @@
-/**
- * @fileOverview Very simple personal log demo application to demonstrate angular functionality,
- * especially:
- * - the MVC model
- * - testability of controllers
- * - dependency injection for controllers via $inject and constructor function
- * - $cookieStore for persistent cookie-backed storage
- * - simple templating constructs such as ng-repeat and {{}}
- * - date filter
- * - and binding onSubmit and onClick events to angular expressions
- * @author Igor Minar
- */
-
-//name space isolating closure
-(function() {
-
-var app = angular.module('personalLog', ['ngCookies']);
-
-var LOGS = 'logs';
-
-/**
- * The controller for the personal log app.
- */
-app.controller('LogCtrl', ['$cookieStore', '$scope', function LogCtrl($cookieStore, $scope) {
-
- var logs = $scope.logs = $cookieStore.get(LOGS) || []; //main model
-
-
- /**
- * Adds newMsg to the logs array as a log, persists it and clears newMsg.
- * @param {string} msg Message to add (message is passed as parameter to make testing easier).
- */
- $scope.addLog = function(msg) {
- var newMsg = msg || $scope.newMsg;
- if (!newMsg) return;
- var log = {
- at: new Date().getTime(),
- msg: newMsg
- };
-
- logs.push(log);
- $cookieStore.put(LOGS, logs);
- $scope.newMsg = '';
- };
-
-
- /**
- * Persistently removes a log from logs.
- * @param {object} log The log to remove.
- */
- $scope.rmLog = function(log) {
- for ( var i = 0; i < logs.length; i++) {
- if (log === logs[i]) {
- logs.splice(i, 1);
- break;
- }
- }
-
- $cookieStore.put(LOGS, logs);
- };
-
-
- /**
- * Persistently removes all logs.
- */
- $scope.rmLogs = function() {
- logs.splice(0, logs.length);
- $cookieStore.remove(LOGS);
- };
-}]);
-
-})();
diff --git a/example/personalLog/scenario/personalLogScenario.js b/example/personalLog/scenario/personalLogScenario.js
deleted file mode 100644
index f9a37cf4a9f4..000000000000
--- a/example/personalLog/scenario/personalLogScenario.js
+++ /dev/null
@@ -1,98 +0,0 @@
-describe('personal log', function() {
-
- beforeEach(function() {
- browser().navigateTo('../personalLog.html');
- });
-
-
- afterEach(function() {
- clearCookies();
- });
-
-
- it('should create new logs and order them in reverse chronological order', function() {
- //create first msg
- input('newMsg').enter('my first message');
- element('form input[type="submit"]').click();
-
- expect(repeater('ul li').count()).toEqual(1);
- expect(repeater('ul li').column('log.msg')).toEqual(['my first message']);
-
- //create second msg
- input('newMsg').enter('my second message');
- element('form input[type="submit"]').click();
-
- expect(repeater('ul li').count()).toEqual(2);
- expect(repeater('ul li').column('log.msg')).toEqual(['my second message', 'my first message']);
- });
-
-
- it('should delete a log when user clicks on the related X link', function() {
- //create first msg
- input('newMsg').enter('my first message');
- element('form input[type="submit"]').click();
- //create second msg
- input('newMsg').enter('my second message');
- element('form input[type="submit"]').click();
- expect(repeater('ul li').count()).toEqual(2);
-
- element('ul li a:eq(1)').click();
- expect(repeater('ul li').count()).toEqual(1);
- expect(repeater('ul li').column('log.msg')).toEqual(['my second message']);
-
- element('ul li a:eq(0)').click();
- expect(repeater('ul li').count()).toEqual(0);
- });
-
-
- it('should delete all cookies when user clicks on "remove all" button', function() {
- //create first msg
- input('newMsg').enter('my first message');
- element('form input[type="submit"]').click();
- //create second msg
- input('newMsg').enter('my second message');
- element('form input[type="submit"]').click();
- expect(repeater('ul li').count()).toEqual(2);
-
- element('input[value="remove all"]').click();
- expect(repeater('ul li').count()).toEqual(0);
- });
-
-
- it('should preserve logs over page reloads', function() {
- input('newMsg').enter('my persistent message');
- element('form input[type="submit"]').click();
- expect(repeater('ul li').count()).toEqual(1);
-
- browser().reload();
-
- expect(repeater('ul li').column('log.msg')).toEqual(['my persistent message']);
- expect(repeater('ul li').count()).toEqual(1);
- });
-});
-
-
-/**
- * DSL for deleting all cookies.
- */
-angular.scenario.dsl('clearCookies', function() {
- /**
- * Deletes cookies by interacting with the cookie service within the application under test.
- */
- return function() {
- this.addFutureAction('clear all cookies', function($window, $document, done) {
- var element = $window.angular.element($document[0]),
- rootScope = element.scope(),
- $cookies = element.data('$injector')('$cookies'),
- cookieName;
-
- rootScope.$apply(function() {
- for (cookieName in $cookies) {
- delete $cookies[cookieName];
- }
- });
-
- done();
- });
- };
-});
diff --git a/example/personalLog/scenario/runner.html b/example/personalLog/scenario/runner.html
deleted file mode 100644
index 298581d96bfd..000000000000
--- a/example/personalLog/scenario/runner.html
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
- Personal Log Scenario Runner
-
-
-
-
-
-
-
diff --git a/example/personalLog/test/personalLogSpec.js b/example/personalLog/test/personalLogSpec.js
deleted file mode 100644
index c68fbfc284eb..000000000000
--- a/example/personalLog/test/personalLogSpec.js
+++ /dev/null
@@ -1,120 +0,0 @@
-describe('example.personalLog.LogCtrl', function() {
- var logScope;
-
-
- beforeEach(module('personalLog'));
-
- beforeEach(inject(function($rootScope, $controller) {
- logScope = $rootScope.$new();
- $controller('LogCtrl', {$scope: logScope});
- }));
-
-
- it('should initialize notes with an empty array', function() {
- expect(logScope.logs).toEqual([]);
- });
-
-
- describe('addLog', function() {
-
- beforeEach(function() {
- expect(logScope.logs).toEqual([]);
- });
-
-
- it('should add newMsg to logs as a log entry', function() {
- logScope.newMsg = 'first log message';
- logScope.addLog();
-
- expect(logScope.logs.length).toBe(1);
- expect(logScope.logs[0].msg).toBe('first log message');
-
- //one more msg, this time passed in as param
- logScope.addLog('second log message');
-
- expect(logScope.logs.length).toBe(2);
- expect(logScope.logs[0].msg).toBe('first log message');
- expect(logScope.logs[1].msg).toBe('second log message');
- });
-
-
- it('should clear newMsg when log entry is persisted', function() {
- logScope.addLog('first log message');
- expect(logScope.newMsg).toBe('');
- });
-
-
- it('should store logs in the logs cookie', inject(function($cookies) {
- expect($cookies.logs).not.toBeDefined();
- logScope.addLog('first log message');
- expect($cookies.logs).toBeTruthy();
- }));
-
-
- it('should do nothing if newMsg is empty', function() {
- logScope.addLog('');
- expect(logScope.logs.length).toBe(0);
- });
- });
-
-
- describe('rmLog', function() {
-
- beforeEach(function() {
- logScope.addLog('message1');
- logScope.addLog('message2');
- logScope.addLog('message3');
- logScope.addLog('message4');
- expect(logScope.logs.length).toBe(4);
- });
-
-
- it('should delete a message identified by index', function() {
- logScope.rmLog(logScope.logs[1]);
- expect(logScope.logs.length).toBe(3);
-
- logScope.rmLog(logScope.logs[2]);
- expect(logScope.logs.length).toBe(2);
- expect(logScope.logs[0].msg).toBe('message1');
- expect(logScope.logs[1].msg).toBe('message3');
- });
-
-
- it('should update cookies when a log is deleted', inject(function($cookies) {
- expect($cookies.logs).toMatch(/\[\{.*?\}(,\{.*?\}){3}\]/);
-
- logScope.rmLog(logScope.logs[1]);
- expect($cookies.logs).toMatch(/\[\{.*?\}(,\{.*?\}){2}\]/);
-
- logScope.rmLog(logScope.logs[0]);
- logScope.rmLog(logScope.logs[0]);
- logScope.rmLog(logScope.logs[0]);
- expect($cookies.logs).toMatch(/\[\]/);
- }));
- });
-
-
- describe('rmLogs', function() {
-
- beforeEach(function() {
- logScope.addLog('message1');
- logScope.addLog('message2');
- logScope.addLog('message3');
- logScope.addLog('message4');
- expect(logScope.logs.length).toBe(4);
- });
-
-
- it('should remove all logs', function() {
- logScope.rmLogs();
- expect(logScope.logs).toEqual([]);
- });
-
-
- it('should remove logs cookie', inject(function($cookies) {
- expect($cookies.logs).toBeTruthy();
- logScope.rmLogs();
- expect($cookies.logs).not.toBeDefined();
- }));
- });
-});
diff --git a/example/temp.html b/example/temp.html
deleted file mode 100644
index da92c68ccf3c..000000000000
--- a/example/temp.html
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
- angular dev sandbox
-
-
-
-
-
-
- view1 | view2 | blank
-
-
-
-
-
-
-
diff --git a/example/tweeter/style.css b/example/tweeter/style.css
deleted file mode 100644
index e8468b6b1485..000000000000
--- a/example/tweeter/style.css
+++ /dev/null
@@ -1,98 +0,0 @@
-.loading {display: none;}
-.fetching .loading {display: block;}
-
-a {
- color: blue;
-}
-
-h1 {
- background-color: black;
- margin: 0;
- padding: .25em;
- color: white;
- border-bottom: 5px solid gray;
-}
-
-.box {
- border: 2px solid gray;
-}
-
-.tweeter {
- margin-right: 360px;
-}
-
-ul {
- list-style: none;
- margin: 0;
- padding: 0;
-}
-
-li {
- margin: .25em;
- padding: 2px;
-}
-
-li img {
- float: left;
- margin: 2px;
- margin-right: .5em;
- max-height: 48px;
- min-height: 48px;
-}
-
-li.even {
- background-color: lightgray;
-}
-
-
-.addressbook {
- float: right;
- width: 350px;
-}
-
-.addressbook li {
- font-size: .9em;
-}
-
-.clrleft {
- clear: left;
-}
-
-.notes {
- font-size: .8em;
- color: gray;
-}
-
-.username, .nickname {
- font-weight: bold;
-}
-
-.editor {
- padding: 4px;
-}
-
-label {
- color: gray;
- display: inline-block;
- width: 75px;
- text-align: right;
- padding: 2px;
- margin-top: 10px;
-}
-
-.editor input[type=text],
-.editor textarea {
- width: 230px;
- vertical-align: text-top;
-}
-
-.editor TEXTAREA {
- height: 50px;
-}
-
-.debug{
- font-size: .7em;
- white-space: pre;
- padding: 0;
- margin: 0;
-}
\ No newline at end of file
diff --git a/example/tweeter/tweeter_addressbook.html b/example/tweeter/tweeter_addressbook.html
deleted file mode 100644
index 5ffa6f74bb61..000000000000
--- a/example/tweeter/tweeter_addressbook.html
+++ /dev/null
@@ -1,80 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
Address Book
- [ Filter:
]
-
-
-
-
-
-mute={{mute|json}}
-
-userFilter={{userFilter|json}}
-
-tweetFilter={{tweetFilter|json}}
-
-$anchor={{$anchor}}
-
-users={{users}}
-
-tweets={{tweets}}
-
-
-
-
-
diff --git a/example/tweeter/tweeter_demo.html b/example/tweeter/tweeter_demo.html
deleted file mode 100644
index 6966192a5114..000000000000
--- a/example/tweeter/tweeter_demo.html
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- (TODO: I should fetch current tweets)
-
- tweets=(TODO: display me!!!)
-
-
diff --git a/example/tweeter/tweeterclient.js b/example/tweeter/tweeterclient.js
deleted file mode 100644
index 9ad7eabc0247..000000000000
--- a/example/tweeter/tweeterclient.js
+++ /dev/null
@@ -1,36 +0,0 @@
-function noop() {}
-$(document).ready(function() {
- function xhr(method, url, data, callback){
- jQuery.getJSON(url, function() {
- callback.apply(this, arguments);
- scope.updateView();
- });
- }
-
- var resourceFactory = new ResourceFactory(xhr);
-
- var Tweeter = resourceFactory.route("http://twitter.com/statuses/:service:username.json", {}, {
- home: {method:'GET', params: {service:'home_timeline'}, isArray:true },
- user: {method:'GET', params: {service:'user_timeline/'}, isArray:true }
- });
-
-
- var scope = window.scope = angular.compile(document, {
- location:angular.startUrlWatcher()
- });
-
- function fetchTweets(username){
- return username ? Tweeter.user({username: username}) : Tweeter.home();
- }
-
- scope.set('fetchTweets', fetchTweets);
- scope.set('users', [
- {screen_name:'mhevery', name:'Mi\u0161ko Hevery',
- notes:'Author of http://www.getangular.com.',
- profile_image_url:'http://a3.twimg.com/profile_images/54360179/Me_-_Small_Banner_normal.jpg'},
- {screen_name:'abrons', name:'Adam Abrons',
- notes:'Author of & Ruby guru see: http://www.angularjs.org.',
- profile_image_url:'http://media.linkedin.com/mpr/mpr/shrink_80_80/p/2/000/005/0a8/044278d.jpg'}
- ]);
- scope.init();
-});
diff --git a/example/view1.html b/example/view1.html
deleted file mode 100644
index 6d0a5881d1ae..000000000000
--- a/example/view1.html
+++ /dev/null
@@ -1,2 +0,0 @@
-view1
-location: {{url()}}
diff --git a/example/view2.html b/example/view2.html
deleted file mode 100644
index d9545f83e76a..000000000000
--- a/example/view2.html
+++ /dev/null
@@ -1,2 +0,0 @@
-view2
-location: {{url()}}