This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Coriander seeds | |
Sabit zeera seeds | |
5-10 dried chilli peppers | |
½ tsp halthi | |
Salt or garlic salt | |
Black pepper | |
4 garlic cloves - crushed | |
3 garlic cloves - chopped | |
ginger - grated | |
1tsp mint chutney |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------------------ | |
//- Model ---------------------------------- | |
// The model is abstract and has no knowledge of the presentation layer. | |
var Product = Backbone.Model.extend({ | |
initialize: function(){ | |
this.set({price : 0, pricePlusTax : 0}); | |
this.on("change:price", function(){ | |
this.set({pricePlusTax: this.get('price') * 1.2}) | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |