angular / react-native-renderer

Use Angular and React Native to build applications for Android and iOS
http://angular.github.io/react-native-renderer/
MIT License
789 stars 97 forks source link

How to load external template #87

Closed jonathanyee closed 8 years ago

jonathanyee commented 8 years ago
@Component({
    selector: 'as-users',
    templateUrl: './users.html'
})

I get `console.error: "Unhandled Promise rejection:", "Failed to load users.html", "; Zone: ", "", "; Task:", "Promise,then", "; Value:', "Failed to load users.html", undefined.

users.html is in the same directory as this component

marclaval commented 8 years ago

This is not possible at run time, but it can be done at build time: