Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
AngularJS光滑脚本和ID_Angularjs_Slick.js - Fatal编程技术网

AngularJS光滑脚本和ID

AngularJS光滑脚本和ID,angularjs,slick.js,Angularjs,Slick.js,AngularJS的新成员 有人能解释一下下面的情况吗,特别是脚本和id=“tpl.html” {{i.label} {{i} 在这里找到了答案 将元素的内容加载到$templateCache中,以便ngInclude、ngView或指令可以使用该模板。元素的类型必须指定为text/ng template,模板的缓存名称必须通过元素的id分配,然后可以将该id用作指令的templateUrl。 在这里找到了答案 将元素的内容加载到$templateCache中,以便ngInclude、ngV

AngularJS的新成员

有人能解释一下下面的情况吗,特别是脚本和id=“tpl.html”


{{i.label}
{{i}
在这里找到了答案

将元素的内容加载到$templateCache中,以便ngInclude、ngView或指令可以使用该模板。元素的类型必须指定为text/ng template,模板的缓存名称必须通过元素的id分配,然后可以将该id用作指令的templateUrl。

在这里找到了答案

将元素的内容加载到$templateCache中,以便ngInclude、ngView或指令可以使用该模板。必须将元素的类型指定为text/ng template,并且必须通过元素的id分配模板的缓存名称,然后该id可以用作指令的templateUrl

        <script type="text/ng-template" id="tpl.html">
            <h3>{{ i.label }}</h3>
        </script>

        <script type="text/ng-template" id="tpl2.html">
            <h3>{{ i }}</h3>
        </script>