2016-06-23 09:47:54 -07:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
2016-05-16 12:06:21 -07:00
|
|
|
import {Component} from '@angular/core';
|
|
|
|
|
2016-06-08 16:38:52 -07:00
|
|
|
@Component({selector: 'comp-with-proj', template: '<ng-content></ng-content>'})
|
2016-05-16 12:06:21 -07:00
|
|
|
export class CompWithProjection {
|
|
|
|
}
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'main',
|
|
|
|
template: '<comp-with-proj><span greeting="Hello world!"></span></comp-with-proj>',
|
|
|
|
directives: [CompWithProjection]
|
|
|
|
})
|
2016-06-08 16:38:52 -07:00
|
|
|
export class MainComp {
|
|
|
|
}
|