Issue 1:
I'm submitting a

[X] feature request

I have a component which provides some generic business logic. Let's say:

CRUD functionality

Productmanagement (product catalogue)

Cross department business management (separate layout for each department)

...

Depending on a condition I want to show a layout (template) which is specific for a type of product, related to the user department, etc.

Right now I can't load a template on the fly for doing this.

I have read through all the issues here and on stackoverflow for possible ways on doing this.

The most practicabel way is the ngTemplateLayout. But in real life if you have dozens of different layout types, it blows up your template file and make unmaintenable.

If you use the dynamiccomponentloader which is the most recommend way by the angular team, it adds an huge overhead of code for generating the component dynamically, even if the functionality for component and module creation is encapsulated. In addition it doesn't allow a real generic solution, because in the ngModule which has also be created dynamically you have to provide all imports, exports, providers, ... to make the component work. So if you don't want to have a huge overhead in your generic component builder, you have to implement a generic componentbuilder for each "type" of your form types. Which is not practicable and increases the danger of recoding all after the next angular release

Expected behavior

Provide a way of loading a template dynamically for a component. As it is available in Angular 1

Please don't be dogmatic on this issue and consider supporting real world requirements in Angular 2

Thanks

Issue 2:
Note: for support questions, please use one of these channels: https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question. This repository's issues are reserved for feature requests and bug reports.

*I'm submitting a ... *

[X] bug report

[ ] feature request

[ ] support request => Please do not submit support request here, see note at the top of this template.

Do you want to request a feature or report a bug?

I report a bug

What is the current behavior?

I have a class, which has 2 properties with @input() annotation(or decorator).

I extend it with a component and I can use it as I expect it, but if I define a property for my component the input values become undefined.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via

https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).

Here is my repo: https://github.com/tamasfoldi/TypewritingApp/commits/game If you run this in the console, you can see undefined logs. Waypoint's posx and posy are undefined but figure posx and posy are not, and if I remove the figurecomponent from the waypointcomponent the input values become correct again.

What is the expected behavior?

It should not become undefined

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Angular version: 2.0.0-beta.7

Browser: Chrome 49.0.2623.87 m

Language: TypeScript 1.8.7

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

Maybe it is a Typescript related issue, I dont know.