Skip to content

Commit 4e4cbf4

Browse files
author
Zhicheng WANG
committed
fix: 修正标题级别
1 parent d6e33e7 commit 4e4cbf4

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

src/assets/content/articles/juri-strumpflohner/gurantee-event-order-with-rxjs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ When we receive a checked event, then we execute the async call, otherwise we tr
222222
> 一旦 Observable “完事”了就会 `complete`。这里的 `complete` 就像是 `Promise``resolve(..)`
223223
>
224224
225-
#### A short note on wrapping `setTimeout` as Observable
225+
### A short note on wrapping `setTimeout` as Observable
226226

227-
#### 对于把 `setTimeout` 包装成 Observable 的简短说明
227+
### 对于把 `setTimeout` 包装成 Observable 的简短说明
228228

229229

230230
You remember we use `setTimeout` to simulate an async call. Well, we need to wrap it into an Observable. There are two ways of doing it.

src/assets/content/articles/ngx-blog/Dont_get_lost_in_structure.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ Here are the questions and problems:
6464

6565
如何让我的代码容易被同事们维护?
6666

67-
#### Folder structure
67+
### Folder structure
6868

69-
#### 文件夹结构
69+
### 文件夹结构
7070

7171
Since Angular CLI stepped in most of the Angular projects are scaffold with it. Hence we often have a well known poject structure.
7272

@@ -134,9 +134,9 @@ Right: in `framework` folder because it's a generaly used functionality.
134134

135135
那么,我们应该把应用外壳放到什么位置?说对了!就放到 `framework` 文件夹中,因为它是一种通用的功能。
136136

137-
#### Cut your code into modules
137+
### Cut your code into modules
138138

139-
#### 把代码切分成模块
139+
### 把代码切分成模块
140140

141141
Next let's talk about the `features`.
142142
To get the idea of the features of an app it's always a good strategy to look at the menu/navigation.
@@ -186,9 +186,9 @@ in fact that means:
186186

187187
<h3>不要用一个指令管理一切。no adme <small>(a directive managing everything)</small></h3>
188188

189-
#### FAQ
189+
### FAQ
190190

191-
#### 常见问题
191+
### 常见问题
192192

193193
> <i>Q: But if I split everything into modules it is possible to have too many modules?</i>
194194
>
@@ -199,9 +199,9 @@ A: No! The maintainability grows by the number of modules. Split your app into m
199199

200200
A:不会!增加模块数量会增加可维护性。把你的应用拆分成模块,再把你的模块拆分成子模块。
201201

202-
#### Type of components
202+
### Type of components
203203

204-
#### 组件的类型
204+
### 组件的类型
205205

206206
So what about Components? Components represent the UI stuff of our app. We can break them up into two categories:
207207

@@ -245,9 +245,9 @@ Those small parts can be presentational components
245245

246246
![展现组件](images/dump_component.png)
247247

248-
#### Reuse code
248+
### Reuse code
249249

250-
#### 复用代码
250+
### 复用代码
251251

252252
Components can be reused but logic can be reused, too. We can relocate logic into services.
253253

@@ -278,9 +278,9 @@ Almost all logic in am app should fit to one of the following categories:
278278
> 不要乱用依赖树。只在最需要的地方提供逻辑。它可能是一个组件或一个模块,甚至是另一个服务。
279279
>
280280
281-
#### Stay maintainable
281+
### Stay maintainable
282282

283-
#### 保持可维护性
283+
### 保持可维护性
284284

285285
Maybe your structure is very deep.
286286
And this means you have looooong imports.
@@ -321,9 +321,9 @@ which can maybe change your developer live
321321
import { MyService } from "@my-logic/my-service/my.service";
322322
```
323323

324-
#### Follow the style guide
324+
### Follow the style guide
325325

326-
#### 遵循风格指南
326+
### 遵循风格指南
327327

328328
that’s the structure of our companies feature
329329

@@ -361,17 +361,17 @@ You'll find the styleguide <a href="https://angular.io/guide/styleguide" target=
361361

362362
你可以在[这里](https://angular.io/guide/styleguide)找到风格指南
363363

364-
#### Conclusion
364+
### Conclusion
365365

366-
#### 结论
366+
### 结论
367367

368368
Huge apps are easy to maintain, if you follow some rules and use the awesome features of Angular CLI and Typescript. Don't be scrared, it's just Angular ;)
369369

370370
如果遵循一些规则并发挥 Angular CLI 和 TypeScript 的强大功能,那些庞大的应用就很容易维护。不要害怕,它只是 Angular;)
371371

372-
#### Special Thanks
372+
### Special Thanks
373373

374-
#### 特别感谢
374+
### 特别感谢
375375

376376
I would like to give special thanks to the awesome people that reviewed this post and gave me pointers:
377377

0 commit comments

Comments
 (0)