Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(api): remove use of static ngModule.forRoot() #167

Merged
merged 1 commit into from
Feb 8, 2017

Conversation

ThomasBurleson
Copy link
Contributor

BREAKING CHANGE:

Previously releases used FlexLayoutModule.forRoot(). This has been deprecated and removed.

-before-

@NgModule({
  declarations : [...],
  imports : [
    CommonModule,
    FlexLayoutModule.forRoot()
  ]
})
export class DemosResponsiveLayoutsModule { }

-after-

@NgModule({
  declarations : [...],
  imports : [ CommonModule, FlexLayoutModule ]
})
export class DemosResponsiveLayoutsModule { }

BREAKING CHANGE:

Previously releases used FlexLayoutModule.forRoot(). This has been deprecated and removed.

-*before*-

```js
@NgModule({
  declarations : [...],
  imports : [
    CommonModule,
    FlexLayoutModule.forRoot()
  ]
})
export class DemosResponsiveLayoutsModule { }
```

-*after*-

```js
@NgModule({
  declarations : [...],
  imports : [ CommonModule, FlexLayoutModule ]
})
export class DemosResponsiveLayoutsModule { }
```
@ThomasBurleson ThomasBurleson added pr: lgtm This PR has been approved by the reviewer pr: needs presubmit labels Feb 7, 2017
@tinayuangao tinayuangao merged commit 86010bf into master Feb 8, 2017
@ThomasBurleson ThomasBurleson deleted the wip/thomas/ngModule-forRoot branch February 9, 2017 14:34
karlhaas pushed a commit to karlhaas/flex-layout that referenced this pull request May 3, 2017
BREAKING CHANGE:

Previously releases used FlexLayoutModule.forRoot(). This has been deprecated and removed.

-*before*-

```js
@NgModule({
  declarations : [...],
  imports : [
    CommonModule,
    FlexLayoutModule.forRoot()
  ]
})
export class DemosResponsiveLayoutsModule { }
```

-*after*-

```js
@NgModule({
  declarations : [...],
  imports : [ CommonModule, FlexLayoutModule ]
})
export class DemosResponsiveLayoutsModule { }
```
@glebmachine
Copy link

Why you remove forRoot? That's cause to multiple instance of MatchMedia services, right?

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes pr: lgtm This PR has been approved by the reviewer pr: needs presubmit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants