Angularjs Template Default Value if Binding Null / Undefined (With Filter)

I have a template binding that displays a model attribute called ‘date’ which is a date, using Angular’s date filter. <span class=”gallery-date”>{{gallery.date | date:’mediumDate’}}</span> So far so good. However at the moment, if there is no value in the date field, the binding displays nothing. However, I would like it to display the string ‘Various’ … Read more

How can I make Sublime Text the default editor for Git?

I have a problem setting Sublime Text 2 as the core.editor with git. I’ve read through every post I could find addressing the problem, but still nothing is working for me. I am running Windows. I have done: git config –global core.editor “‘C:/Program Files/Sublime Text 2/sublime_text.exe'” and tried that with various arguments like -m. When … Read more

Why Is `Export Default Const` invalid?

I see that the following is fine: const Tab = connect( mapState, mapDispatch )( Tabs ); export default Tab; However, this is incorrect: export default const Tab = connect( mapState, mapDispatch )( Tabs ); Yet this is fine: export default Tab = connect( mapState, mapDispatch )( Tabs ); Can this be explained please why const … Read more