I am unable to get ui.router to load a component on index.html, through a localhost or otherwise:
index.html
component
attribute is available from ui-router@1.0.0
(see here and in CHANGELOG.MD - it was added in 1.0.0-aplpha
) so it's not available 0.3.1
.
Here is working jsFiddle (with 1.0.3-beta)
By default the data will be applicable on view with $ctrl
controller alias
template: "<p>{{$ctrl.data}}</p>",
Demo Plunkr