What is the difference between two declarations, : and = in angular 2?
<p><strong>angular code</strong></p>

<pre><code>export class AppComponent implements OnInit {
    hero = 'Ram'; // line 1
    hero: 'Ram'; // line 2
}
</code></pre>

<p>I don't really understand the difference between line1 and line2. Please help me</p>