What is the translation of " THE VIEWMODEL " in Vietnamese?

Examples of using The viewmodel in English and their translations into Vietnamese

{-}
  • Colloquial category close
  • Ecclesiastic category close
  • Computer category close
Let's start with the ViewModel.
Hãy cùng bắt đầu với ViewModel.
The ViewModel pulls its data from the model.
ViewModel sẽ lấy dữ liệu từ Model.
Here is the code in the ViewModel.
Đây là code ở trong ViewModel.
The ViewModel pulls its data from the model.
ViewModel lấy dữ liệu của nó từ mô hình.
The model knows nothing about the viewmodel.
Model không biết gì về view model.
The View- that informs the ViewModel about the user's actions.
View- Mang chức năng thông báo cho ViewModel về những actions của người dùng.
If the ViewModel needs access to Android classes, we create wrappers that we call Providers.
Nếu ViewModel cần truy cập vào các class Android class, chúng ta tạo ra những wrapper gọi là các Provider.
How to get View to update when the ViewModel gets changed.
Cách nhận View để cập nhật khi ViewModel được thay đổi.
The activity has the query saved in an onSaveInstanceState() bundle,and should pass the query to the ViewModel.
Activity có truy vấn được lưu trong một onSaveInstanceState()và pass truy vấn tới ViewModel.
We learned two things about the ViewModel the hard way.
Chúng ta đã học được 2 thứ về ViewModel, đó là.
The ViewModel sees that it has no search results cached, and delegates loading the search results, using the given search query.
ViewModel thấy rằng nó không có kết quả tìm kiếm được lưu trữ, và tải các kết quả tìm kiếm, sử dụng truy vấn tìm kiếm đã cho.
The view classeshave no idea that the model classes exist, while the ViewModel and model are unaware of the view.
Các lớp Viewkhông nghĩa rằng các lớp model tồn tại, trong khi ViewModel và model không hề biết View.
When you create the ViewModel object, you pass an empty query, which tells the ViewModel object that there's no data to load yet.
Khi bạn tạo ra đối tượng ViewModel, bạn pass sang một truy vấn rỗng, cho biết đối tượng ViewModel rằng không có dữ liệu nào để tải.
Note: When an activity is initially created, the onSaveInstanceState()bundle contains no data, and the ViewModel object is empty.
Lưu ý: Khi một Activity ban đầu được tạo,onSaveInstanceState() không chứa dữ liệu, và đối tượng ViewModel trống rỗng.
The ViewModel retrieves the necessary data from the DataModel, applies the UI logic and then exposes relevant data for the View to consume.
ViewModel lấy các dữ liệu cần thiết từ DataModel, áp dụng logic UI và sau đó hiển thị data có liên quan với View.
It only configures the view, handles the user interaction, and most importantly,observes and exhibits LiveData elements taken from the ViewModel.
Nó chỉ cấu hình các view, xử lý tương tác người dùng, và quan trọng nhất, là quan sát vàthể hiện các thành phần LiveData nhận được từ ViewModel.
It passes a reference to itself to every ViewModel, allowing the ViewModel to use the functionality provided by the Controller.
Nó sẽ truyền tham chiếu của chính nó vào mọi ViewModel, cho phép các ViewModel đó sử dụng các chức năng được cung cấp bởi Controller.
The ViewModel automatically observes the Lifecycle state of the view, maintaining consistency during configuration changes and other Android lifecycle events.
ViewModel tự động quan sát trạng thái Lifecycle của view, duy trì sự ổn định trong suốt các thay đổi cấu hình và các sự kiện Android lifecycle khác.
From what we have seen so far the main benefit of the ViewModel pattern to remove code from XAML code-behind to make XAML editing a more independent task.
Từ những gì chúng tôi đã thấy cho đến nay, lợi ích chính của mô hình ViewModel là xóa mã khỏi mã XAML- behind để làm cho XAML chỉnh sửa một tác vụ độc lập hơn.
When the user searches for a song, whatever complex song data you load from the database for the UIController should be immediately stored in the ViewModel object.
Khi người dùng tìm kiếm một bài hát, bất kể dữ liệu bài hát phức tạp nào bạn tải từ cơ sở dữ liệu cho UI Controller phải được lưu trữngay lập tức trong đối tượng ViewModel.
The consumer of the data should know about the producer, but the producer- the ViewModel- doesn't know, and doesn't care, who consumes the data.
Khách hàng của dữ liệu cần được biết về producer này, nhưng producer- ViewModel- lại không biết, và không quan tâm ai là tiếp nhận data.
It is important to understand that the ViewModel never references the View directly and that the updates on the data are always done by the LiveData entity.
Rất quan trọng để hiểu rằng ViewModel không bao giờ tham chiếu đến View một cách trực tiếp và các cập nhật trên data luôn thực hiện bởi LiveData.
If this newly added song is something that should be shown in the UI,you should also update the data in the ViewModel object to reflect the addition of the song.
Nếu bài hát vừa được thêm vào này là một cái gì đó cần được hiển thị trong giaodiện người dùng, bạn cũng nên cập nhật dữ liệu trong đối tượng ViewModel để phản ánh việc bổ sung bài hát.
We have seen that since the View is just a consumer of the ViewModel, it was easy to just replace different UI elements, with minimal, or sometimes zero changes in other classes.
Kể từ khi View chỉ là một consumer của các ViewModel, rất dễ thay thế các yếu tố UI khác nhau với những thay đổi nhỏ trong những class khác.
You might be concerned that this whole event listening approach violates the good old rules about“separation of concerns”. Rest assured- since all Vue handler functions andexpressions are strictly bound to the ViewModel that's handling the current view, it won't cause any maintenance difficulty.
Bạn có thể lo ngại rằng toàn bộ việc lắng nghe sự kiện bằng cách đặt event listener trong HTML như thế này là vi phạm quy tắc“ separation of concerns.” Cứ yên tâm, vì tất cả các hàm và biểu thức xử lí sự kiện của Vueđược ràng buộc chặt chẽ với ViewModel, sẽ không có khó khăn gì trong việc bảo trì.
You pass the query from the onSaveInstanceState() bundle to the ViewModel, which determines that it already has loaded the necessary data and that it does not need to re-query the database.
Bạn pass truy vấn từ onSaveInstanceState() tới ViewModel, xác định rằng nó đã nạp các dữ liệu cần thiết và nó không cần phải truy vấn lại cơ sở dữ liệu.
We should make sure that every action of the user goes through the ViewModel and that any possible logic of the View is moved in the ViewModel.
Chúng ta cần phải bảo đảm rằng mọi action của người dùng phải thông qua ViewModel và bất kỳ logic nào có thể xảy ra của View phải được di chuyển trong ViewModel.
One assumption, that frequently came out of this pattern, was that the ViewModel simply replaced the controller in MVC(as if you could just substitute VM for C in the acronym and all would be forgiven)….
Một giả thiết, thường xuất hiện từ mô hình này, là ViewModel chỉ cần thay thế bộ điều khiển trong MVC( như thể bạn có thể thay thế VM cho C trong từ viết tắt và tất cả sẽ được tha thứ)….
As opposed to Data-Binding,where the View observes a mutable instance of the ViewModel for property changes, React creates a new View as a function of immutable State/props.
Trái ngược với Liên kết dữ liệu, trong đó view function thểhiện có thể thay đổi của ViewModel để thay đổi thuộc tính, React tạo view function mới như một chức năng của state/ props.
One of the most importantclasses of the new Architecture Components is the ViewModel, which is designed to hold data that is related to the UI, maintaining its integrity during configuration changes like screen rotations.
Một trong số những class quantrọng nhất của Architecture Component là ViewModel, nó được thiết kế để giữ data có liên quan đến UI, duy trì sự đồng nhất trong suốt các thay đổi cấu hình như các lần xoay chiều màn hình.
Results: 100, Time: 0.0286

Word-for-word translation

Top dictionary queries

English - Vietnamese