You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
639 B
23 lines
639 B
4 years ago
|
import { Component, Input, OnInit } from '@angular/core';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'app-explain-textarea',
|
||
|
templateUrl: './explain-textarea.component.html',
|
||
|
styleUrls: ['./explain-textarea.component.scss']
|
||
|
})
|
||
|
export class ExplainTextareaComponent implements OnInit {
|
||
|
@Input() explain:String
|
||
|
@Input() placeholder:String
|
||
|
@Input() index:String
|
||
|
|
||
|
textcontant:string
|
||
|
constructor() { }
|
||
|
|
||
|
ngOnInit(): void {
|
||
|
this.textcontant = localStorage.getItem(sessionStorage.getItem('companyId')+'text'+this.index) || ''
|
||
|
}
|
||
|
save(){
|
||
|
localStorage.setItem(sessionStorage.getItem('companyId')+'text'+this.index,this.textcontant)
|
||
|
}
|
||
|
}
|