What does “html?v=<%= VERSION %>” mean?

Question!

I'm having a difficult time finding the answer. Basically, what is the ?v=<%= VERSION %> doing on the following line?

'./components/home/home.html?v=<%= VERSION %>

If it helps, the source file can be seen here.

Or here:

import {Component, View} from 'angular2/angular2';
import {RouterLink} from 'angular2/router';

@Component({
  selector: 'component-1'
})
@View({
  templateUrl: './components/home/home.html?v=<%= VERSION %>',
  directives: [RouterLink]
})
export class Home {}


Answers

My guess is that this really is ASP-alike, hence being a short for the Response.Write method.

<%= VERSION %>

equals

<%
Response.Write(VERSION)
%>

This line is using this "write" to control the template version.

By : lockedz


This video can help you solving your question :)
By: admin