Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
jenly1314 committed Apr 28, 2021
1 parent 9c63b11 commit 05177b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ public class App extends BaseApplication {

### 其它示例

**BaseViewModel** 示例 (如果您继承使用了BaseViewModel或其子类,你需要参照如下方式在类上添加**@HiltViewModel**并在构造函数上添加**@Inject**注解)
**BaseViewModel** 示例 (如果您继承使用了BaseViewModel或其子类,你需要参照如下方式在类上添加 **@HiltViewModel** 并在构造函数上添加 **@Inject** 注解)
```java
@HiltViewModel
public class YourViewModel extends BaseViewModel<YourModel> {
Expand Down

0 comments on commit 05177b2

Please sign in to comment.