Edit in JSFiddle

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