title: how to pass the value in protractor like this element(by.model('filter.dateRange')).$('[value="<parameter>")
body: <p>I need to pass the value say in the below example as 'date' to identify the element in the page.
  I am working with Angularjs page automation using protractor with Javascript.</p>
  
  <pre><code>function(parameter) {
      element(by.model('filter.dateRange')).$('[value="parameter"]');
  }
  </code></pre>
  
  <p>How to give the value in the above expression from the function call.
  i.e, How to pass different values to the parameter. now parameter becomes string.</p>