Created
November 7, 2017 11:44
-
-
Save serenaf/c1b09ba511ab926ea447c5a53000eef6 to your computer and use it in GitHub Desktop.
Adding Base Controller and route controllers
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 BaseController from 'ember-hacker-news/controllers/base-controller'; | |
export default BaseController.extend({ | |
}); |
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 BaseController from 'ember-hacker-news/controllers/base-controller'; | |
export default BaseController.extend({ | |
}); |
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 Controller from '@ember/controller'; | |
export default Controller.extend({ | |
actions: { | |
markAsRead(item) { | |
this.get('store').unloadRecord(item); | |
} | |
} | |
}); |
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 BaseController from 'ember-hacker-news/controllers/base-controller'; | |
export default BaseController.extend({ | |
}); |
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 BaseController from 'ember-hacker-news/controllers/base-controller'; | |
export default BaseController.extend({ | |
}); |
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 BaseController from 'ember-hacker-news/controllers/base-controller'; | |
export default BaseController.extend({ | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment