Angularjs using once the value from ng-repeat

I have following ng-repeat

<div ng-repeat="page in pages">
<input type="text" ng-model=""

Basically this will show multiple times for same name. Problem is my data being returned is in collection so I cant just use the name property. Can you please tell me how can i just show only once.


I'd still say your better off pulling this data into it's own property but here's a lazy way to achieve the goal:


<!DOCTYPE html>
    <script data-require="angular.js@*" data-semver="1.2.14" src=""></script>
    <script src="script.js"></script>
  <body ng-app="myApp" ng-controller="MyCtrl">
    <input type="text" ng-model="pages[0].name"/>


// Code goes here

angular.module("myApp", []).controller("MyCtrl", function($scope){
  $scope.pages = [{name:"Page1"},{name:"Page2"}];


Need Your Help

Ajax tab not executing script

jquery html ajax tabs

I am using JQuery UI tabs to load content through Ajax. I have two tabs that should load html content and execute a script to hide or show some elements in the loaded content. I was running into an...