<html>
<head>
  <meta name="viewport" content="width=device-width, minimum-scale=1.0, 
initial-scale=1.0, user-scalable=yes">
  <title>Search Friends</title>

    <script src="../webcomponentsjs/webcomponents.js"></script>
    <link rel="import" href="polymer.html">
    <link rel="import" href="polymer-filters.html">
    <link rel="import" href="../paper-input/paper-input.html">
</head>
<body>



<polymer-element name="name-tag">
<template bind="{{studients}}">
<paper-input id="search" name="txtsearch" label="Search 
Studients"></paper-input>

 <!-- Replace starsWidth value paper-input -->

 <!-- Uncaught TypeError: Cannot read property 'length' of undefined 
filter-startsWith.js:10PolymerExpressions.startsWith-->

 <template repeat="{{s in studients | startsWith('C') }}">
 <li>{{ s.name }}</li>
</template>


 </template>
  <script>
   Polymer('name-tag', {
      ready: function() {

        this.studients = [
          {name: 'Jennifer'},
          {name: 'Robert'},
          {name: 'Tom'},
          {name: 'Kevin'},
          {name: 'Paul'},
          {name: 'Eric'},
          {name: 'Leonard'},
          {name: 'Catherine'},
        ];
      }
    });
  </script>
</polymer-element>


<name-tag></name-tag>


</body>
</html>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/4fcf2991-267d-4ff2-800a-7a69db71729b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to