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,9 @@
'use strict';
angular.module('myApp.version.version-directive', [])
.directive('appVersion', ['version', function(version) {
return function(scope, elm, attrs) {
elm.text(version);
};
}]);