Angular – Component – Directives – templates
يعتبر هذا الدرس وجة تعارف على بعض اساسيات العملاق انجلير و سنتعلم كيفية انشاء محتوي و اضافة بعض الخصائص التي لاغنى عنها في اي قالب
HTML item component
{{itemTitle}}
- {{language}}
{{currentTime}}
working with if
working with else
working with if again
Typescript item component
itemTitle = "angular 4 with arabic html"; languages = [ 'html','css','js','php','typescript' ]; currentTime = new Date(); condition; isValid; setCurrentTime(){ this.currentTime = new Date() ; this.condition = true; this.isValid = true; }