Skip to content

Directive not supporting custom delimiters #1

@Xample

Description

@Xample

The directive assume the delimiters to be '{{' and '}}'
I made a branch and opened a pull request
Here is the idea of the refactor:

angular.module("datePicker").run(["$templateCache","$interpolate", function($templateCache,$interpolate) {
  var startSym = $interpolate.startSymbol();
  var endSym = $interpolate.endSymbol();

  $templateCache.put("templates/datepicker.html",
  ...
    "        <th colspan=\"5\" class=\"switch\" ng-click=\"setView('month')\">"+startSym+"date|date:\"yyyy MMMM\""+endSym+"</th>\r"
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions