oferh / ng2-completer

Angular 2 autocomplete component
http://oferh.github.io/ng2-completer/
MIT License
348 stars 171 forks source link

laravel angular #464

Open ousmane0682 opened 1 year ago

ousmane0682 commented 1 year ago

I having actually one issue with my code. any one can help me here . I just want the default selected but I'm new with laravel annd I don't know how to manage that. please help

student.component.ts

import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { StudentService } from '../services/student.service'; import { HttpClient } from '@angular/common/http'; import { ActivatedRoute } from '@angular/router';

@Component({ selector: 'app-students', templateUrl: './students.component.html', styleUrls: ['./students.component.scss'] }) export class StudentsComponent implements OnInit { limits = [ 10, 20, 30, 100, 200, 500, 1000 ] //limit: any = 10; limit = this.limits[10];

}

studet.component.html

first is working properly. 1.first

Students


2.second