|
1 | 1 | include _includes/_util-fns
|
2 | 2 |
|
3 |
| -div(layout-gt-sm='row' style='margin: 0 -24px') |
4 |
| - div(flex=33 style='padding:0 24px') |
5 |
| - h3.text-headline Fast |
6 |
| - p.text-body Angular computes updates based on changes to data, not DOM, for fast updates that scale to the largest data sets with minimal memory overhead. |
7 |
| - div(flex=33 style='padding:0 24px') |
8 |
| - h3.text-headline Mobile |
9 |
| - p.text-body With Angular Universal for server-side rendering and Web Workers for smooth scrolling and transitions, Angular 2 solves the core challenges in mobile web performance. |
10 |
| - div(flex=33 style='padding:0 24px') |
11 |
| - h3.text-headline Flexible |
12 |
| - p.text-body Supports several languages including plain JavaScript, TypeScript, and Dart. Also supports both object-style data structure with POJO data-binding and functional reactive style with unidirectional data flow and support for observables and immutable data structures. |
13 |
| -br |
14 |
| -div |
15 |
| - h3.text-headline The Basics |
16 |
| - p.text-body In Angular you display data by defining components. Data in your component classes is automatically available to display in your templates or control how they render as in the example below. |
17 |
| - p.text-body While this example uses TypeScript, Angular works equally well with ES5, ES6 and Dart as well. |
18 |
| - p(style='text-align:right') |
19 |
| - md-button.md-primary(href='/resources/live-examples/homepage-hello-world/ts/plnkr.html' target='_blank') |
20 |
| - span.icon-open-in-new |
21 |
| - | Try in Plunker |
22 |
| - +makeTabs(` |
23 |
| - ../docs/_fragments/homepage-hello-world/ts/app/hello_world.html, |
24 |
| - ../docs/_fragments/homepage-hello-world/ts/app/hello_world.ts, |
25 |
| - ../docs/_fragments/homepage-hello-world/ts/app/main.ts, |
26 |
| - ../docs/_fragments/homepage-hello-world/ts/index.1.html`, |
27 |
| - null, |
28 |
| - `app/hello_world.html, |
29 |
| - app/hello_world.ts, |
30 |
| - app/main.ts, |
31 |
| - index.html`) |
32 |
| -br |
33 |
| -div |
34 |
| - h3.text-headline Structuring Apps With Components |
35 |
| - p.text-body Groups of coordinated components divide the responsibilities of our application. This ToDo list app has a separate component for the form, the list, and the core app logic. Where the previous example component referenced templates in separate files, this one shows using inline templates. |
36 |
| - p.text-body Defining types as we do here in Todo.ts communicates our intention to other developers, helps us find bugs in our code, and lets IDEs do more work for us in refactoring, code navigation, and code completion. |
37 |
| - p(style='text-align:right') |
38 |
| - md-button.md-primary(href='/resources/live-examples/homepage-todo/ts/plnkr.html' target='_blank') |
39 |
| - span.icon-open-in-new |
40 |
| - | Try in Plunker |
41 |
| - +makeTabs(` |
42 |
| - ../docs/_fragments/homepage-todo/ts/app/todo_app.ts, |
43 |
| - ../docs/_fragments/homepage-todo/ts/app/todo_form.ts, |
44 |
| - ../docs/_fragments/homepage-todo/ts/app/todo_list.ts, |
45 |
| - ../docs/_fragments/homepage-todo/ts/app/todo.ts, |
46 |
| - ../docs/_fragments/homepage-todo/ts/app/main.ts, |
47 |
| - ../docs/_fragments/homepage-todo/ts/index.1.html`, |
48 |
| - null, |
49 |
| - `app/todo_app.ts, |
50 |
| - app/todo_form.ts, |
51 |
| - app/todo_list.ts, |
52 |
| - app/todo.ts, |
53 |
| - app/main.ts, |
54 |
| - index.html`) |
55 |
| -br |
56 |
| -div |
57 |
| - h3.text-headline Advanced Component Communication |
58 |
| - p.text-body This demo shows an efficient implementation of tabs/panes. Each pane is only instantiated while it is visible. Panes which are not visible are released and do not have associated memory, DOM and change detection cost. |
59 |
| - p.text-body The demo also showcases dependency injection and the ability of one component to query for other components. Such queries automatically update even as detail panes are added. This allows the tabs component to work with <code>ngFor</code> without any special knowledge of it. |
60 |
| - p(style='text-align:right') |
61 |
| - md-button.md-primary(href='/resources/live-examples/homepage-tabs/ts/plnkr.html' target='_blank') |
62 |
| - span.icon-open-in-new |
63 |
| - | Try in Plunker |
64 |
| - +makeTabs(` |
65 |
| - ../docs/_fragments/homepage-tabs/ts/app/di_demo.ts, |
66 |
| - ../docs/_fragments/homepage-tabs/ts/app/ui_tabs.ts, |
67 |
| - ../docs/_fragments/homepage-tabs/ts/app/main.ts, |
68 |
| - ../docs/_fragments/homepage-tabs/ts/index.1.html`, |
69 |
| - null, |
70 |
| - `app/di_demo.ts, |
71 |
| - app/ui_tabs.ts, |
72 |
| - app/main.ts, |
73 |
| - index.html`) |
| 3 | +div(class="home-rows") |
| 4 | + // Group 1 |
| 5 | + div(layout="row" layout-xs="column" class="home-row") |
| 6 | + div(class="promo-img-container promo-1") |
| 7 | + div |
| 8 | + img(src="resources/images/home/responsive-framework.svg") |
| 9 | + div(class="text-container") |
| 10 | + div(class="text-block promo-1-desc l-pad-top-2") |
| 11 | + h3(class="text-headline") Develop Across All Platforms |
| 12 | + p(class="text-body"). |
| 13 | + Learn one way to build applications with Angular and reuse your code and abilities to build apps for any deployment target. For web, mobile web, native mobile and native desktop. |
| 14 | + |
| 15 | + // Group 2 |
| 16 | + div(layout="row" layout-xs="column" class="home-row") |
| 17 | + div(class="text-container") |
| 18 | + div(class="text-block") |
| 19 | + h3(class="text-headline") Speed & Performance |
| 20 | + p(class="text-body"). |
| 21 | + Achieve the maximum speed possible on the Web Platform today, and take it further, via Web Workers and server-side rendering. |
| 22 | + br |
| 23 | + p(class="text-body"). |
| 24 | + Angular puts you in control over scalability. Meet huge data requirements by building data models on RxJS, Immutable.js or another push-model. |
| 25 | + div(class="promo-img-container promo-2") |
| 26 | + div |
| 27 | + img(src="resources/images/home/speed-performance.svg") |
| 28 | + |
| 29 | + // Group 3 |
| 30 | + div(layout="row" layout-xs="column" class="home-row") |
| 31 | + div(class="promo-img-container promo-3") |
| 32 | + div |
| 33 | + img(src="resources/images/home/joyful-development.png") |
| 34 | + div(class="text-container") |
| 35 | + div(class="text-block promo-3-desc") |
| 36 | + h3(class="text-headline") Incredible Tooling |
| 37 | + p(class="text-body"). |
| 38 | + Build features quickly with simple, declarative templates. Extend the template language with your own components and use a wide array of existing components. Get immediate Angular-specific help and feedback with nearly every IDE and editor. All this comes together so you can focus on building amazing apps rather than trying to make the code work. |
| 39 | + |
| 40 | + // Group 4 |
| 41 | + div(layout="row" layout-xs="column" class="home-row") |
| 42 | + div(class="text-container") |
| 43 | + div(class="text-block l-pad-top-2") |
| 44 | + h3(class="text-headline") Loved by Millions |
| 45 | + p(class="text-body"). |
| 46 | + Supports you from your first scrappy launch all the way through global deployment -- Angular brings you the scaling infrastructure and techniques that support Google's largest applications. |
| 47 | + div(class="promo-img-container promo-4") |
| 48 | + div |
| 49 | + img(src="resources/images/home/loved-by-millions.png") |
| 50 | + |
| 51 | + .cta-bar |
| 52 | + a(href="/docs/ts/latest/quickstart.html" class="button button-large button-shield md-raised " + "md-primary" md-button) Get Started |
| 53 | + |
0 commit comments