0
我如何從$ translate中獲取文本?我得到一個「的翻譯:」如果我不喜歡這樣寫道:在控制器中使用角度平移給我一個對象對象
var str = '<b>' + $translate('room') + '</b><br>';
if ($scope.ad.category == '2' || $scope.ad.category == '1') {
str = '<b>' + $translate('flat') + '</b><br>';
} else if ($scope.ad.category == '3') {
str = '<b>' + $translate('house') + '</b><br>';
}
我敢肯定,這是安靜簡單,我只是沒有看到這個問題(像往常一樣-_-)
老兄,你真棒!非常感謝你! – bdizzle 2015-02-11 12:37:18