Skip to content

Chore rc5 update#13

Open
e-schultz wants to merge 4 commits into
masterfrom
chore-rc5-update
Open

Chore rc5 update#13
e-schultz wants to merge 4 commits into
masterfrom
chore-rc5-update

Conversation

@e-schultz

Copy link
Copy Markdown
Owner

Simplified RC4->RC5 upgrade/module without going as far as a Module Per Component for blog post.

Update from RC4 to RC5, most applications should still run but display
deprecation warnings for you.
Import `@NgModule`, and other modules that you need. What used to be in
your providers array for bootstrap, are bassed into the providers
property of the `@NgModule` decorator.

We also change the bootstrapping to now bootstrap our new Angular
Module.
Since we are registering the `FormsModule` at the app module level, we
no longer need to import things like `REACTIVE_FORM_DIRECTIVES` into
each of the components that were using them previously.
Now that we have the basics of upgrading to RC5 done, we can start
thinking about what areas of our application to start breaking off into
their own modules.

An obvious starting point is to create a Module to hold our common
display components.

We can bundle these up into a `ComponentModule` and register this with
our App Module foor bootstrapping.

We are now able to use our directives like `Table`, `Panel`, etc in our
homepage without needing to explicitly import them and define them in
the direvties for `home.page.ts`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant