akveo / ng2-smart-table

Angular Smart Data Table component
https://akveo.github.io/ng2-smart-table/
MIT License
1.63k stars 877 forks source link

Failed to load cell.component.html and + #252

Open primg opened 7 years ago

primg commented 7 years ago

Hi, I would really appreciate if anyone would be of any help.

I followed the install tutorial.

The error

errsmarttable

My Package.json

"ng2-smart-table": "^0.5.0",

My module

import { Ng2SmartTableModule } from 'ng2-smart-table';

@NgModule({
    imports: [
    [...]
     Ng2SmartTableModule,
     [...]
    ]

My component

@Component({
    templateUrl: './sortsurveydata.component.html',
    providers: [UserService, SortSurveyDataService, Globals],
})
export class SortSurveyDataComponent implements OnInit {
  settings = {
        columns: {
            date: {
                title: 'Date'
            },
            author: {
                title: 'Author'
            },
            position: {
                title: 'Author position'
            },
            regionCountries: {
                title: 'Region and countries'
            },
            industry: {
                title: 'Industry'
            },
            score: {
                title: 'Score'
            },
            status: {
                title: 'Survey status'
            }
        }
    };
}

`My HTML

<ng2-smart-table [settings]="settings" [source]="data"></ng2-smart-table>

primg commented 7 years ago

I fixed it by intalling a latest version ng2-smart-table@latest

kgkern01 commented 7 years ago

I'm having the same issue, and I'm running latest "ng2-smart-table": "^0.6.0-1",