Skip to content

Commit

Permalink
[ZEPPELIN-6076] Fix rendering runtime dynamic components in new UI (#…
Browse files Browse the repository at this point in the history
…4809)

* Bypass decorator removing by AOT compilation

* Add comment

* Add license
  • Loading branch information
tbonelee authored Sep 3, 2024
1 parent 7708b71 commit 13412ad
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* limitations under the License.
*/

import { NgModule } from '@angular/core';
import { NgModule } from './ngmodule.decorator';

import { NzAffixModule } from 'ng-zorro-antd/affix';
import { NzAlertModule } from 'ng-zorro-antd/alert';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// importing NgModule and Component from @angular/core
// and re-exporting them to prevent AOT compiler from removing them
import { Component, NgModule } from '@angular/core';
export { NgModule, Component };
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
* limitations under the License.
*/
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { NzModule } from './ng-zorro-antd-module';
import { NgModule } from './ngmodule.decorator';

@NgModule({
declarations: [],
Expand Down

0 comments on commit 13412ad

Please sign in to comment.