demo for ng1 app hosting ng2 components

Simple project demonstrating ng2 component hosting within ng1-based
application (based on official angular-seed repo).
This commit is contained in:
Denys Vuika
2016-04-06 15:23:19 +01:00
parent f9e1ad80a9
commit f7e6ef55a2
49 changed files with 3228 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
'use strict';
describe('myApp.version module', function() {
beforeEach(module('myApp.version'));
describe('app-version directive', function() {
it('should print current version', function() {
module(function($provide) {
$provide.value('version', 'TEST_VER');
});
inject(function($compile, $rootScope) {
var element = $compile('<span app-version></span>')($rootScope);
expect(element.text()).toEqual('TEST_VER');
});
});
});
});