Edit in JSFiddle
HTML
Result
<body ng-app> <p>{{cname || 'guest'}}! 你好</p> <input type="text" ng-model="cname"> </body>