This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Karma configuration | |
// base path, that will be used to resolve files and exclude | |
basePath = ''; | |
// list of files / patterns to load in the browser | |
files = [ | |
JASMINE, | |
JASMINE_ADAPTER, | |
'app/components/angular/angular.js', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var app = angular.module('eggheadioApp'); | |
app.controller('MainCtrl', function ($scope) { | |
$scope.awesomeThings = [ | |
'HTML5 Boilerplate', | |
'AngularJS', | |
'Karma' | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('filter', function() { | |
beforeEach(module('eggheadioApp')); | |
describe('reverse', function() { | |
iit('should reverse a string', inject(function(reverseFilter){ | |
expect(reverseFilter('ABCD')).toEqual('DCBA'); | |
})) | |
}) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*<div ng-app="superApp"> | |
<superhero flight speed strength>Superman</superhero> | |
<superhero speed>Flash</superhero> | |
<superhero strength>Hulk</superhero> | |
</div>*/ | |
var app = angular.module("superApp", []); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*<div ng-app="twitterApp"> | |
<div ng-controller="AppCtrl"> | |
<div enter="loadMoreTweets()">Roll over to load more twitt</div> | |
</div> | |
</div> */ | |
var app = angular.module("twitterApp", []) | |
app.controller("AppCtrl", function($scope){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
local scope property | |
<div ng-app="drinkApp"> | |
<div ng-controller="AppCtrl"> | |
<div drink flavor="strawberry"></div> | |
</div> | |
</div>*/ | |
var app = angular.module("drinkApp", []); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
local scope property | |
<div ng-app="drinkApp"> | |
<div ng-controller="AppCtrl"> | |
<div drink flavor="strawberry"></div> | |
</div> | |
</div>*/ | |
var app = angular.module("drinkApp", []); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
local scope property | |
<div ng-app="drinkApp"> | |
<div ng-controller="AppCtrl"> | |
<div drink flavor="strawberry"></div> | |
</div> | |
</div>*/ | |
var app = angular.module("drinkApp", []); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
<div ng-app="drinkApp"> | |
<div ng-controller="AppCtrl"> | |
Ctrl | |
<input type="text" ng-model="ctrlFlavor"> | |
Dir | |
<div drink flavor="ctrlFlavor"></div> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
& scope | |
<div ng-app="phoneApp"> | |
<div ng-controller="AppCtrl"> | |
<div phone dial="callHome(message)"></div> | |
<div phone dial="callHome(message)"></div> | |
</div> | |
</div> | |
*/ |
OlderNewer