Angular2:是否很慢? [英] Angular2: Is it slow?

查看:1213
本文介绍了Angular2:是否很慢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是看了看最后一个角版本的角团队推出。
Angular2是出于他们已经发布了他们的新网页的 http://angular.io

Just took a look at the last angular version that the angular team launch. Angular2 is out and they have been release a their new webpage http://angular.io.

在那里,他们有一个5分钟快速启动项目,迅速展示新的语法,你必须用来执行新的角度应用的东西。

In there they have a 5 min quickstart project that shows quickly the new syntax and what you have to use to perform a new angular application.

我只是做了所有的得到它的工作步骤,但它采取4.93秒加载。

I just did all the steps to get it working but it took 4.93 seconds to load.

我只是想知道,是角2慢?或者,也许我错过了一些步骤。

I'm just wondering, is angular 2 that slow? Or maybe I miss some steps.

下面是我的code

// app.es6

import {Component, Template, bootstrap} from 'angular2/angular2';

// Annotation section
@Component({
  selector: 'my-app'
})
@Template({
  inline: '<h1>Hello {{ name }}</h1>'
})
// Component controller
class MyAppComponent {
   constructor() {
     this.name = 'Alex!';
   }
}

bootstrap(MyAppComponent);

和index.html

and index.html

<!-- index.html -->
<html>
  <head>
    <title>Angular 2 Quickstart</title>
    <script src="dist/es6-shim.js"></script>
  </head>
  <body>

    <!-- The app component created in app.js -->
    <my-app></my-app>

    <script>
      // Rewrite the paths to load the files
      System.paths = {
        'angular2/*':'angular2/*.js', // Angular
        'rtts_assert/*': 'rtts_assert/*.js', //Runtime assertions
        'app': 'app.js' // The my-app component
      };

      // Kick off the application
      System.import('app');
    </script>
  </body>
</html>

在此先感谢! :)

Thanks in advance! :)

推荐答案


  • 您与RTTS(运行时类型系统检查),这是伟大的发展,但速度慢于生产运行

  • 我们还没有所有文件连接成快速加载单个文件。

  • 我们仍然有缓慢变化的检测,因为快有一条尚未在DART的工作,我们要保持一致。

请参阅https://github.com/djsmith42/angular2_calendar如何得到它跑得快。

See https://github.com/djsmith42/angular2_calendar on how to get it to run fast.

这篇关于Angular2:是否很慢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆