简体   繁体   English

角度模板html

[英]Angular template html

I want to make fourteen html pages with this template, I would only change the items that are with comments. 我想使用此模板制作十四个html页面,我只会更改带有注释的项目。 How can I achieve this with Angular? 如何使用Angular做到这一点? Can I do it with ng-repeat or another directive? 我可以使用ng-repeat或其他指令吗?

 <div class="container"> <hr> <ol class="breadcrumb small"> <li class="breadcrumb-item"><a ui-sref="inicio">Inicio</a></li> <li class="breadcrumb-item active"><a >Seguro para Personas</a></li> <!-- Include ruta Breadcrumb --> <li class="breadcrumb-item active">Auto</li> </ol> <div class="row"> <div class="col-md-5"> <!-- Include Image and alt --> <img src="images/sp_auto.png" width="100%" alt="Seguro Auto"> </div> <div class="col-md-6 ml-auto"> <!-- Include Icon --> <h1><span><img src="images/icon_auto.svg" alt=""></span> Auto</h1> <!-- Include Destacado --> <p class="h4 text-secondary my-4">Sabemos la importancia de asegurar tu vehículo hoy por todos los accidentes que ocurren a diario, nosotros te ayudamos a proteger a tu familia ya tu vehículo.</p> <!-- Include Description --> <p>Te ofrecemos una amplia gama de beneficios, coberturas y servicios, desde coberturas básicas de accidentes hasta coberturas completas frente a choques. Robos, daños a terceros, accidentes de personas y asistencias vehiculares como servicios de grúa y chofer de reemplazo.</p> <div ng-include='"views/btQuieroInfo.html"'></div> </div> </div> </div> <div ng-include='"views/masSeguros.html"'></div> 

Without knowin more details, it could be simple as: 不知道更多细节,它可能很简单:

<!-- Include Image and alt -->
<img ng-src="{{seguroImage}}" width="100%" alt="Seguro Auto">

And in your controller you'll have to define the {{seguroImage}} actual value. 并且在您的控制器中,您必须定义{{seguroImage}}实际值。 Same for the other variables 其他变量相同

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM