I am trying to get params from my component
this is my component
import { Component } from '@angular/core';
@Component({
selector: 'data',
})
export class Data {
constructor(public title: string, public p: string,) {}
}
then when I import it to my page and I define my var
import { Data } from '../../components/data/data';
dataList: Data[];
I’m getting this error: Cannot find name ‘Data’
How can i fix this, please help me. thanks