Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# AFSpawnService
This is an Angular/TypeScript service that will dynamically create components in Angular,
and attach them to a view.
This is an Angular/TypeScript service that creates Angular components and attaches them to a view dynamically.

The current version of this repo supports installing `AFSpawnService` into your project
via npm, and using the service to init your own components on-the-fly.
Currently, the `AFSpawnService` is available on npm. Once installed in your project, use the service to initialize your own components on-the-fly.

### To learn more about `AFSpawnService`
If you want to know more about `AFSpawnService`, or you need to understand the need
for the service, please check out my talk about [CAAS: Components As A Service](https://youtu.be/-Hy-i4q8Vtg).
### Want to learn more about `AFSpawnService` and the motivation behind it?
Whether you want to know more about `AFSpawnService` or you need to understand the motivation
for the service, please check out my talk on [Components as a Service (CaaS)](https://youtu.be/-Hy-i4q8Vtg).


### How to use AFSpawnService?
Expand Down Expand Up @@ -90,7 +88,8 @@ export class AppComponent{
}
}
```
This will attach the spawned component to to view that you provided.

This will attach the spawned component to the view provided.

#### Passing Inputs and Outputs
There are two ways to pass inputs/outputs to the spawned component. The first is by passing a key/value object as the third
Expand Down Expand Up @@ -118,4 +117,4 @@ Let me know if you have questions.

This Repo is accepting Pull Requests.

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.0.2.
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.0.2.