Important Notice:

Course Content
Switch Statement
0/1
break and continue Statements
0/3
Basic Form Validation in JavaScript
0/1
JavaScript & Angular JS (Chapter- 6) M2-R5.1
About Lesson

Model View Controller (MVC):-

                  यह एक सॉफ्टवेयर डिज़ाइन पैटर्न है जिसका उपयोग वेब एप्लिकेशन develop करने के लिए किया जाता है. इसमें तीन components होते हैं।

i. Model:- एक मॉडल एक प्रोग्राम द्वारा उपयोग किया जाने वाला डेटा है। यह एक डेटाबेस, फ़ाइल या एक साधारण वस्तु (Ordinary item) हो सकती है Model के अंदर हम सभी प्रकार के डाटा रिलेटेड लॉजिक को लिखते है, आप कह सकते है कि इसमें डेटाबेस से रिलेटेड स्टेटमेंट्स को लिखते है जिनके साथ यूजर काम करता है इसके अंदर या तो उस डाटा को रिप्रेजेंट किया जाता है जो कि View और Controller के बीच ट्रांसफर होता है या फिर कोई दूसरा बिज़नेस रिलेटेड डाटा लॉजिक को मॉडल में रिप्रेजेंट किया जाता है

ii. View:- एक व्यूएक application के भीतर वस्तुओं को प्रदर्शित करने का साधन) resources) है। उदाहरणों में एक विंडो के भीतर एक विंडो या बटन या टेक्स्ट प्रदर्शित करना शामिल है। इसमें कुछ भी शामिल है जो उपयोगकर्ता (Users) देख सकता है।

iii. Controller:- Controller जो है वो एक बहुत ही पावरफुल पार्ट होता है MVC आर्किटेक्चर के अंदर, Controller , Model और View के बीच एक interface की तरह काम करता है और यह सभी बिज़नेस logics , इनकमिंग रिक्वेस्ट्स को प्रोसेस करता है और Model कॉम्पोनेन्ट की मदद से डाटा को manipulate करता है और फिर View की मदद से डाटा को final आउटपुट के तौर पर User को show करता है तो डाटा को डेटाबेस से लाने के लिए पहले Model से इंटरैक्ट करता है और बाद में उसे View पर शो करने के लिए View से interact करता है और यही सब बिज़नेस लॉजिक्स इसके अंदर लिखे जाते है  मतलब Controller जो है वो एक कमांडिंग officer की तरह काम करता है         

 

 

Model View Controller (MVC):-

                            It is a software design pattern used to develop web applications. It consists of three components.

i. Model:- A model is data used by a program. It can be a database, file or an ordinary item. Inside the Model we write all types of data related logic, you can say that in this we write the statements related to the database with which the user works. Inside, either the data that is transferred between the View and the Controller is represented, or some other business-related data logic is represented in the model.

ii. View:- A view is a means of displaying objects (resources) within an application. Examples include displaying a window or button or text within a window. This includes anything that users can see.

iii. Controller:- Controller is a very powerful part within the MVC architecture. Controller works like an interface between Model and View and it performs all the business logics, processes incoming requests and returns data with the help of Model component. Manipulates and then shows the data to the user as final output with the help of View, then first interacts with the Model to fetch the data from the database and later interacts with the View to show it on the View. And all these business logics are written inside it, meaning the controller works like a commanding officer.

error: Content is protected !!