How to import a component in SoloLearn? | SoloLearn: Learn to code for FREE!

+2

How to import a component in SoloLearn?

import {Component} from '@angular/core'; @Component({});

5/31/2020 8:09:22 AM

Vasiliy

5 Answers

New Answer

0

U mean web page or what u need give more explanation Using tag <iframe src="https//:www.google.com">google</iframe>

0

For Example : If You could use a library called react router, this way you could create paths to navigate between your components. https://reacttraining.com/react-router/web/example/basic

0

Abdulsalam Al-Ashwal I asked a question on Angular, how can your answer about React help me? P. S: "Look at the tags in the question".

0

Muhammad🏆:-) I mean: import {Component} from '@angular/core'; @Component({}); P. S: "Look at the tags in the question".

0

Please visit this site : https://angular.io/guide/feature-modules Example : // import the new component import { CustomerDashboardponent } from './customer-dashboard/customer-dashboard.component'; @NgModule({ imports: [ CommonModule ], declarations: [ CustomerDashboardComponent ], }) https://angular.io/guide/router