title: angularjs component: Initialize variables in $onInit before template is loaded
body: <p>In angualarjs is there a way to initialize a variable in a component before the template is loaded from "templateUrl:". </p>