-
Notifications
You must be signed in to change notification settings - Fork 0
/
atom.xml
70 lines (40 loc) · 7.48 KB
/
atom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Jiande's博客</title>
<subtitle>说到!做到?努力肯定</subtitle>
<link href="/atom.xml" rel="self"/>
<link href="http://yoursite.com/"/>
<updated>2018-11-15T06:45:44.521Z</updated>
<id>http://yoursite.com/</id>
<author>
<name>Jiande</name>
</author>
<generator uri="http://hexo.io/">Hexo</generator>
<entry>
<title>angular开发问题汇总</title>
<link href="http://yoursite.com/2018/04/27/angular%E5%BC%80%E5%8F%91%E9%97%AE%E9%A2%98%E6%B1%87%E6%80%BB/"/>
<id>http://yoursite.com/2018/04/27/angular开发问题汇总/</id>
<published>2018-04-27T17:36:16.000Z</published>
<updated>2018-11-15T06:45:44.521Z</updated>
<content type="html"><![CDATA[<p>在开发angular中遇到的一些问题及解决方案. 将会持续更新</p><h3 id="1-在cli运行的情况下-添加懒加载模块可能报错"><a href="#1-在cli运行的情况下-添加懒加载模块可能报错" class="headerlink" title="1. 在cli运行的情况下, 添加懒加载模块可能报错:"></a>1. 在cli运行的情况下, 添加懒加载模块可能报错:</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">core.js:1448 ERROR Error: Uncaught (in promise): TypeError: undefined is not a function</span><br><span class="line">TypeError: undefined is not a function</span><br><span class="line"> at Array.map (<anonymous>)</span><br><span class="line"> at webpackAsyncContext (eval at ./src/$$_lazy_route_resource lazy recursive (main.bundle.js:13), <anonymous>:19:34)</span><br><span class="line"> at SystemJsNgModuleLoader.loadAndCompile (core.js:6558)</span><br><span class="line"> at SystemJsNgModuleLoader.load (core.js:6542)</span><br><span class="line"> at RouterConfigLoader.loadModuleFactory (router.js:4543)</span><br><span class="line"> at RouterConfigLoader.load (router.js:4523)</span><br><span class="line"> at MergeMapSubscriber.eval [as project] (router.js:2015)</span><br><span class="line"> at MergeMapSubscriber._tryNext (mergeMap.js:128)</span><br></pre></td></tr></table></figure><h4 id="1-1-解决方案"><a href="#1-1-解决方案" class="headerlink" title="1.1 解决方案"></a>1.1 解决方案</h4><pre><code>重新运行项目`npm start`</code></pre><h3 id="2-通过第三方插件或方法异步改变组件变量的值时出现变量没有更新到模板"><a href="#2-通过第三方插件或方法异步改变组件变量的值时出现变量没有更新到模板" class="headerlink" title="2. 通过第三方插件或方法异步改变组件变量的值时出现变量没有更新到模板"></a>2. 通过第三方插件或方法异步改变组件变量的值时出现变量没有更新到模板</h3><h4 id="2-1-问题根源"><a href="#2-1-问题根源" class="headerlink" title="2.1 问题根源"></a>2.1 问题根源</h4><pre><code>angular的检测机制是基于zone, 而第三方的异步调用运行在zone作用之外, 不会触发zone检测, 导致变量没有及时更新到模板</code></pre><h4 id="2-2-解决方法"><a href="#2-2-解决方法" class="headerlink" title="2.2 解决方法"></a>2.2 解决方法</h4><pre><code>1. 通过`ChangeDetectorRef.detectChanges()`手动进行变量检测;2. 通过`ngZone.run(() => {})`来将方法放在zone中进行.</code></pre>]]></content>
<summary type="html">
<p>在开发angular中遇到的一些问题及解决方案. 将会持续更新</p>
<h3 id="1-在cli运行的情况下-添加懒加载模块可能报错"><a href="#1-在cli运行的情况下-添加懒加载模块可能报错" class="headerlink" title="1. 在c
</summary>
<category term="前端" scheme="http://yoursite.com/categories/%E5%89%8D%E7%AB%AF/"/>
<category term="angular" scheme="http://yoursite.com/tags/angular/"/>
</entry>
<entry>
<title>Hello World(Travis CI)</title>
<link href="http://yoursite.com/2018/03/18/hello-world/"/>
<id>http://yoursite.com/2018/03/18/hello-world/</id>
<published>2018-03-18T00:00:00.000Z</published>
<updated>2018-11-15T06:45:44.521Z</updated>
<content type="html"><![CDATA[<p><img src="/img/hello.jpg" alt=""><br>Welcome to <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/" target="_blank" rel="noopener">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="https://hexo.io/docs/troubleshooting.html" target="_blank" rel="noopener">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues" target="_blank" rel="noopener">GitHub</a>.</p><h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/writing.html" target="_blank" rel="noopener">Writing</a></p><h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/server.html" target="_blank" rel="noopener">Server</a></p><h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/generating.html" target="_blank" rel="noopener">Generating</a></p><h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/deployment.html" target="_blank" rel="noopener">Deployment</a></p>]]></content>
<summary type="html">
<p><img src="/img/hello.jpg" alt=""><br>Welcome to <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a>! This is your very fir
</summary>
<category term="blog" scheme="http://yoursite.com/categories/blog/"/>
<category term="hexo" scheme="http://yoursite.com/tags/hexo/"/>
</entry>
</feed>