Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

laravel angular #464

Open
ousmane0682 opened this issue Sep 22, 2022 · 0 comments
Open

laravel angular #464

ousmane0682 opened this issue Sep 22, 2022 · 0 comments

Comments

@ousmane0682
Copy link

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

{{limit}}
  • {{_limit}}
--------------------------------------------------- 2.second {{_limit}}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant