<script type="text/ng-template" id="name">

https://docs.angularjs.org/api/ng/directive/script

<script type="text/ng-template" id="/tpl.html">
Content of the template.
</script> <a ng-click="currentTpl='/tpl.html'" id="tpl-link">Load inlined template</a>
<div id="tpl-content" ng-include src="currentTpl"></div>
it('should load template defined inside script tag', function() {
element(by.css('#tpl-link')).click();
expect(element(by.css('#tpl-content')).getText()).toMatch(/Content of the template/);
});

最新文章

  1. u-boot源码分析之C语言段
  2. Eclipse设置选中高亮显示
  3. IOS之UI--动态设置NavigationBar的颜色以及透明度
  4. Google Zxing 二维码生成与解析
  5. 服务器&amp;域名那些事儿
  6. 《ASP.NET1200例》在DataList里编辑和删除数据
  7. Servlet乱码
  8. Android ActionBar隐藏修改图标和标题
  9. [Objective-c 基础 - 2.6] @property和@synthesize
  10. mysqldump: command not found问题解决
  11. pycurl,Python cURL library
  12. WPF: 本地化(Localization) 实现
  13. ASP.NET MVC5(二):控制器、视图与模型
  14. 好用的有多种样式的搜索界面创建UISearchBar
  15. 与班尼特&#183;胡迪一起做生意 (HZUN-2261)
  16. idea 错误: 找不到或无法加载主类
  17. 为什么大一先要学C语言(面向过程)再学C++或JAVA(面向对象)?
  18. tensorflow结果可视化-【老鱼学tensorflow】
  19. [LeetCode] Jewels and Stones 珠宝和石头
  20. Nginx服务器中配置非80端口的端口转发方法详解

热门文章

  1. QML与C++交互:在qml中使用QSqlQueryModel显示数据库数据
  2. 得到view坐标的各种方法
  3. Python 网络请求模块 urllib 、requests
  4. 将Linux默认的OpenJDK替换为Oracle JDK
  5. 单因素方差分析(One Way ANOVA)
  6. tf.argmax
  7. [Link]Hive资料整理
  8. 指定文件兼容性模式 &lt; meta http-equiv = &quot;X-UA-Compatible&quot; content = &quot;IE=edge,chrome=1&quot; /&gt;的意义
  9. 阿里云centos中mysql的安装及一些常识知识
  10. Tiny210 U-BOOT(二)----配置时钟频率基本原理