Answer the question
In order to leave comments, you need to log in
Why is the template not working correctly in angularjs?
Hello, tell me why the template is displayed incorrectly on one of the pages.
There is an index.html page where the site skeleton is located. There are 6 more different pages, but the header is not shown on the main one (Home.html). That is, it is everywhere except for this one page.
Here is the entire code for the Home page? Apparently, something is not right in it:
<!- ФИЛЬТЕР-->
<div class="my_filter">
<h2>Фильтер</h2>
<p>По названию: </p>
<form>
<input type="text" class="form-control" placeholder="Поиск..." ng-model="search" >
</form>
<p>По наявности: </p>
<input type="radio" name="status" ng-model="searchText.status" value="true"> Есть в наличии<Br>
<input type="radio" name="status" ng-model="searchText.status" value="false"> Под заказ<Br>
Всего выбраных товаров: {{data.length}}
</div>
<!-- Информация про товар-->
<section>
<div class="container">
<div class="row">
<div class="tovaru">
<div class="col-md-12 tovaru" ng-repeat="phone in data = (phones | filter: search | filter:searchText:true)">
<table>
<tr>
<div class="col-md-4 phone_photo">
<td class="prev">
<h1>{{phone.name}}</h1>
<p><img ng-src="{{phone.imageUrl}}" alt="{{phone.name}}"></p>
<span class="label"
ng-init="status = phone.status ? 'Есть в наличии': 'Под заказ'"
ng-class="{'label-success':phone.statusa, 'label-warning': !phone.statusa}">
{{status}}
</span>
</td>
</div>
<div class="col-md-8 ">
<td class="snippet">
<p>{{phone.snippet}}</p>
<p><a class="btn btn-default" href="#/phones/{{phone.id}}" role="button">View details »</a></p>
</td>
</div>
<hr>
</tr>
</table>
</div>
</div>
</div>
</div>
</section><!-- Товары -->
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question