के साथ प्रारंभ करना मुझे एम्बर.जेएस के साथ शुरू करने के लिए कोई अच्छा दस्तावेज नहीं मिला। कृपया मेरी मदद करें, यहां एक साधारण उदाहरण है जिसे मैंने http://emberjs.com/documentation/ से आजमाया लेकिन स्क्रीन पर कुछ भी प्रदर्शित नहीं हुआ।Ember.js
Error: MyApp is not defined
जावास्क्रिप्ट: app.js
MyApp.president = Ember.Object.create({
firstName: "Barack",
lastName: "Obama",
fullName: function() {
return this.get('firstName') + ' ' + this.get('lastName');
// Tell Ember that this computed property depends on firstName
// and lastName
}.property('firstName', 'lastName')
});
एचटीएमएल
<p>
<script type="text/x-handlebars">
The President of the United States is {{MyApp.president.fullName}}.
</script>
</p>
मैं मिलने लगे किट से सब जे एस फ़ाइलें शामिल थे।
"मुझे कोई अच्छा दस्तावेज नहीं मिला" ??? क्या आपने http://emberjs.com/documentation/ पर देखा है? –
हां, लेकिन, दस्तावेज़ीकरण में उदाहरण काम नहीं किया। मेरा कोड –
ओउप्स, क्षमा करें। से मेरा जवाब –