Kimmix / MVC_KMITL62

Example of MVC practice using angular

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MVC_KMITL62 📕

LoginScreen

Simple MVC practice AF using Angular 10

ตัวอย่างแนวทางจาก https://scotch.io/tutorials/mvc-in-an-angular-world

UI ใช้ Primeng(primeface) + Custom CSS

Angular ใช้หลักการแบบ MVVM/MVVC/MVW(Model View WhatEver) ไม่ใช้ MVC

แต่ตัวอย่างนี้ใช้ Angular สำหรับช่วยในส่วนของ View ให้ง่ายขึ้น โครงสร้างการทำงานจะเป็นไปตามหลัก MVC ด้วยพื้นฐานของ JS/TS

ไม่ควรนำไปใช้ในการทำโปรเจค Angular ในงานจริง

How to (For noob) 🙈

Install Node.Js

Run คำสั่ง npm install ติดตั้ง package

Run คำสั่ง npm start และเปิด Firefox cuz firefox is da best เข้าไปที่ localhost:4200

Files 📁

หลักๆ อยู่ที่ src/app/student

  • student.model.ts => ใส่ทุก Function ในนี้
  • student.view.html => สำหรับแสดงผล (สิ่งที่มองเห็น)
  • student.controller.ts => เปลี่ยนค่าที่แสดง, เรียก Fuction จากใน Model

This project was generated with Angular CLI version 8.3.9.

About

Example of MVC practice using angular

License:The Unlicense


Languages

Language:TypeScript 55.2%Language:CSS 32.4%Language:HTML 12.4%