Skip to content

Conversation

@jonathanrasquin
Copy link

No description provided.

})
export class AppComponent {}
export class AppComponent implements OnInit {
isProduction!: boolean;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi (don't update this)

You can do:

isProduction = environment.production;

Copy link
Author

@jonathanrasquin jonathanrasquin May 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like this?

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [
    RouterOutlet,
  ],
  templateUrl: './app.component.html',
})
export class AppComponent{
  isProduction = environment.production;
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weer 4 lijnen code minder ;)

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.

2 participants