보다 간단하지는 않지만 : fiddle 렌더링 할 템플릿을 가져올 수 없습니다. 나는 분명히 간단한 것을 놓치고 있지만 지금 몇 시간 동안 주연하고 있습니다. 누군가가 오류를 발견 할 수 있습니까?ember.js 템플릿이 렌더링되지 않았습니다.
크롬에서 디버깅 할 때보기가 컨트롤러와 함께 입력 되어도 볼 수 있지만 템플릿에는 문제가없는 것 같습니다. 내 랩탑 컴퓨터에서 실행되는 몇 가지 다른 엠버 테스트가 있습니다. 내가 잘못 아니에요 경우
<script type="text/x-handlebars" data-template-name="index">
<h1>Application</h1>
<p>Your content here.</p>
{{outlet}}
</script>
Albumartist = Ember.Application.create();
Albumartist.Router.map(function(match) {
this.route('index', {path: '/'});
});
Albumartist.IndexView = Ember.View.extend({
});
Albumartist.IndexRoute = Ember.Route.extend({
});
Albumartist.IndexController = Ember.Controller.extend({
renderTemplate: function(controller, model){
console.log('hi');
}
});
감사합니다! 이제는 바이올린이 작동하지만 여전히 로컬에서 작동하지 않습니다. 아마도 의존성 문제 일 겁니다. 고마워. 고마워. – Rudi