当前位置: 首页 > news >正文

1 - Static Template

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

In order to illustrate how Angular enhances standard HTML, you will create a purely static HTML page and then examine how we can turn this HTML code into a template that Angular will use to dynamically display the same result with any set of data.

In this step you will add some basic information about two cell phones to an HTML page.

  • The page now contains a list with information about two phones.

Workspace Reset Instructions ➤

The most important changes are listed below. You can see the full diff on GitHub.


app/index.html:

<ul>
  <li>
    <span>Nexus S</span>
    <p>
      Fast just got faster with Nexus S.
    </p>
  </li>
  <li>
    <span>Motorola XOOM™ with Wi-Fi</span>
    <p>
      The Next, Next Generation tablet.
    </p>
  </li>
</ul>

Experiments

  • Try adding more static HTML to index.html. For example:

    <p>Total number of phones: 2</p>

Summary

This addition to your app uses static HTML to display the list. Now, let's go to step 2 to learn how to use Angular to dynamically generate the same list.

转载于:https://my.oschina.net/changeme/blog/805683

相关文章:

  • java jar bat 运行
  • 快递接口——调用分析对比
  • FormsAuthentication实现登录(转)
  • php实现微信推广海报代码示例
  • WPF老矣,尚能饭否——且说说WPF今生未来(下):安心
  • 2016第51周四外甥女走丢记
  • 如何通过包名知道是否应用已经在应用商店上线
  • ios图片适配问题
  • Cry on my shoulder
  • SPDY 是什么?如何部署 SPDY?
  • WebKit JavaScript Binding添加新DOM对象的三种方式
  • 把时间当作朋友——李笑来
  • mybatis(一)
  • Spring+JMS 队列模式 收发消息
  • 捕捉异常和异常的使用原则
  • JS 中的深拷贝与浅拷贝
  • 07.Android之多媒体问题
  • 2017-08-04 前端日报
  • ES6, React, Redux, Webpack写的一个爬 GitHub 的网页
  • iOS小技巧之UIImagePickerController实现头像选择
  • JS函数式编程 数组部分风格 ES6版
  • Laravel 菜鸟晋级之路
  • PHP 7 修改了什么呢 -- 2
  • Protobuf3语言指南
  • Quartz实现数据同步 | 从0开始构建SpringCloud微服务(3)
  • Yeoman_Bower_Grunt
  • 程序员最讨厌的9句话,你可有补充?
  • 基于webpack 的 vue 多页架构
  • 前端存储 - localStorage
  • 浅谈Kotlin实战篇之自定义View图片圆角简单应用(一)
  • 微信公众号开发小记——5.python微信红包
  • 我从编程教室毕业
  • Unity3D - 异步加载游戏场景与异步加载游戏资源进度条 ...
  • ​【已解决】npm install​卡主不动的情况
  • !!【OpenCV学习】计算两幅图像的重叠区域
  • #LLM入门|Prompt#2.3_对查询任务进行分类|意图分析_Classification
  • #stm32驱动外设模块总结w5500模块
  • ()、[]、{}、(())、[[]]命令替换
  • (32位汇编 五)mov/add/sub/and/or/xor/not
  • (第61天)多租户架构(CDB/PDB)
  • (力扣记录)1448. 统计二叉树中好节点的数目
  • (十七)Flask之大型项目目录结构示例【二扣蓝图】
  • (四)Controller接口控制器详解(三)
  • (太强大了) - Linux 性能监控、测试、优化工具
  • (转)用.Net的File控件上传文件的解决方案
  • .apk文件,IIS不支持下载解决
  • .net 反编译_.net反编译的相关问题
  • .NET/ASP.NETMVC 深入剖析 Model元数据、HtmlHelper、自定义模板、模板的装饰者模式(二)...
  • .NET/MSBuild 中的发布路径在哪里呢?如何在扩展编译的时候修改发布路径中的文件呢?
  • .net连接MySQL的方法
  • .NET下ASPX编程的几个小问题
  • /run/containerd/containerd.sock connect: connection refused
  • @Query中countQuery的介绍
  • [ C++ ] template 模板进阶 (特化,分离编译)
  • [ Linux 长征路第五篇 ] make/Makefile Linux项目自动化创建工具