Skip to content

Instantly share code, notes, and snippets.

@gishmel
gishmel / Makefile
Last active August 29, 2015 14:14 — forked from martinsik/Makefile
# Copyright (c) 2013 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# GNU Make based build file.  For details on GNU Make see:
# http://www.gnu.org/software/make/manual/make.html
#
#
@gishmel
gishmel / config,js
Created September 14, 2014 02:52
Assuming that there exists the respective providers with the proper methods and the rest of the file exists above and below but just this is necessary to analyze the syntax possible problem
.state('instructor', {
url: '/instructors/:instructor_id',
controller: 'User_Instructor',
templateUrl: 'user/instructor/display.html',
resolve: {
user: ['User_Factory', function(User_Factory) {
return User_Factory.getCurrentUser();
}],
instructor: ['$stateParams', 'Instructor_Service', function($stateParams, Instructor_Service) {
return Instructor_Service.getInstructor($stateParams.instructor_id);