Migration note: AngularJS custom interpolation symbols in templates
A migration note for UI-Grid users whose cell and header templates relied on AngularJS $interpolateProvider custom start/end symbols (for example [[ ]] instead of {{ }}). It explains that WarGrid templates do not use AngularJS interpolation: templates are renderer functions or framework-native components (GRID-A07-F17), so no interpolation symbols need configuring. A mapping table covers common template expressions…
Planned. This page shows the specification from issue #211. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Split view. The left panel shows a UI-Grid-style template string using [[ row.entity.price | currency ]] and [[ grid.appScope.label ]], displayed as static code. The right panel shows the WarGrid renderer equivalent running in a live grid.
Expected behavior
Choosing a pattern shows the legacy template, the converted WarGrid code and the live grid rendering the converted output. The diff highlights each interpolation construct and its replacement.
Planned API surface
Docs page /docs/migration/ui-grid/templates-interpolationcolumnDef.cellRenderer / cellTemplate (GRID-A07-F17), referencedRenderer context { value, row, column, api, context }, mapping grid.appScope to gridOptions.contextAcceptance criteria
- Note states plainly that custom interpolation symbols have no equivalent because templates are not string-interpolated, and that no configuration is needed (pending)
- Mapping table covers COL_FIELD, MODEL_COL_FIELD, row.entity, grid.appScope, col.colDef, AngularJS filters and ng-click/ng-class (pending)
- Each mapped pattern has runnable converted code in the live example (pending)
- Security note: converted renderers must not build HTML from unescaped values; points to the safe text-rendering default (pending)