Skip to content

Not able to see custom component in Angular 12.2.0 #105

@edgarjoao

Description

@edgarjoao

Hi there,
I'm trying to use @angular-extensions/elements in my project but not able to see anything.

"@angular/core": "~12.2.0",
"@angular-extensions/elements": "^12.6.0"

Sample page

HTML

<ng-template #error>Loading failed...</ng-template>
<blue-ui *axLazyElement="url; errorTemplate: error;" ></blue-ui>

Component

@Component({
  selector: 'app-sample-page',
  templateUrl: './sample-page.component.html',
  styleUrls: ['./sample-page.component.scss']
})
export class SamplePageComponent implements OnInit {

  url = 'http://localhost:4201/main.js'

  constructor() { }

  ngOnInit(): void {
   
  }

}

AppModule

@NgModule({
  schemas:[
    CUSTOM_ELEMENTS_SCHEMA
  ],
  declarations: [
    AppComponent,
    SamplePageComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    LazyElementsModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Result
image

Is there something wrong in my example?

Edgar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions