These are chat archives for angular/material

12th
Jan 2016
Dmitri Zaitsev
@dmitriz
Jan 12 2016 02:58
@Murarz208 Why not using system fonts and save user's bandwidth?
chenglu2015
@chenglu2015
Jan 12 2016 07:43
@tonyeung The bug only appeared in the framework of the loopback. It's OK when used in angular. I modified one line code in angular-material.js and It's OK now. I think the reason maybe due to this error " <md-backdrop> may not work properly in a scrolled, static-positioned parent container." Thanks!
Maciek Murawski
@Murarz208
Jan 12 2016 08:27
@tonyeung But all the clients should download file? My application will probably work under some kind of firewall so I cannot add some CDN instruction. What I meant is to add roboto styles that would normally print letters in english like category (http://www.google.com/design/spec/style/typography.html#typography-language-categories-reference). How can I achieve that in angular material, should I download additional font file and attach to project or is there any other way to do it? Thanks for answers :smiley:
gaurav
@myselfgaurav
Jan 12 2016 12:24
i need help with ionic tabs issue
is there any way to refresh page when praticular tab is clicked
i need help with ionic tabs issue
is there any way to refresh page when praticular tab is clicked
tonyeung
@tonyeung
Jan 12 2016 15:14
@Murarz208 you can download the font files instead. Did you read through the documentation from google? There should be instructions on how to download the font files and distribute it yourself.
Jameesh Moidunny
@jameeshpm
Jan 12 2016 15:53
hi, I am new in AngularJS, I have created an app uisng ionic and I wanted register with gcm server using angulerJS to send push from my server using php. Anybody can help with this. Thanks
tonyeung
@tonyeung
Jan 12 2016 15:54
never used ionic
i think there is a warning about compatibility between ionic and ng-material though
Jameesh Moidunny
@jameeshpm
Jan 12 2016 15:55
ok, i dont want to use ionic function, i need angularJS
this is my app.js

// Ionic Starter App

// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
angular.module('starter', ['ionic','ionic.service.core','LocalStorageModule'])

.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
if(window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
cordova.plugins.Keyboard.disableScroll(true);
}
if(window.StatusBar) {
StatusBar.styleDefault();
}
});
})

.config(function(localStorageServiceProvider){
localStorageServiceProvider.setPrefix('Silver');
})

.controller('main', function($scope, $ionicModal, localStorageService){

var taskData = 'task';
$scope.tasks = [];
$scope.task = {};
$ionicModal.fromTemplateUrl('new-task-modal.html',{
    scope: $scope,
    animation: 'slide-in-up'
}).then(function(modal){
    $scope.newTaskModal = modal;
});

$scope.getTasks = function(){
    if(localStorageService.get(taskData)){
        $scope.tasks=localStorageService.get(taskData);
    }
    else {
        $scope.tasks=[];
    }
};

$scope.createTask = function(){
    $scope.tasks.push($scope.task);
    localStorageService.set(taskData, $scope.tasks);
    $scope.tasks={};
    $scope.newTaskModal.hide();
    $scope.getTasks();
};

$scope.removeTask = function(index){
    $scope.tasks.splice(index, 1);
    localStorageService.set(taskData, $scope.tasks);
};

$scope.completeTask = function(index){
    if (index !== -1) {
        $scope.tasks[index].completed = true;
    }
    localStorageService.set(taskData, $scope.tasks);
};

$scope.openTaskModal = function () {
    $scope.newTaskModal.show();
};

$scope.closeTaskModal = function () {
    $scope.newTaskModal.hide();

};

})

tonyeung
@tonyeung
Jan 12 2016 15:56
good lord use code pen
Jameesh Moidunny
@jameeshpm
Jan 12 2016 15:57
i didnt understand
sorry
tonyeung
@tonyeung
Jan 12 2016 16:01
@jameeshpm http://codepen.io/
@tonyeung can you help me to integrate this
i am getting error module is unavailable or mis spelled
tonyeung
@tonyeung
Jan 12 2016 16:13
uhh.. i'm not going to open some random zip file, lol
Jameesh Moidunny
@jameeshpm
Jan 12 2016 16:14
@tonyeung ok
sorry for that
tonyeung
@tonyeung
Jan 12 2016 16:19
@jameeshpm if i were in your shoes i'd learn how to use codepen/jsfiddle/plnkr asap
you're not going to get much help on coding if you can't make a Short, Self Contained, Correct Example that people can run and debug themselves
Jameesh Moidunny
@jameeshpm
Jan 12 2016 16:22
@tonyeung thanks for your guidance