Skip to content

mesabg/gulp-require-classify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-require-classify

Mix ng-classify with require js and using a simple syntax

Getting Started

These is a project created to solve a problem I have when I was trying to use ng-classify plug-in and requireJS

Prerequisites

Nothing

Installing

Run this command

npm install gulp-require-classify --save-dev

Use

Using tags "@classify" and "@!classify" code inside of them are going to be compiled using ng-classify plug in, no matter indentation.

Input Code

# Main Application
define [
	
], () ->
	'use strict'
	
	@classify
	# Main Application Class
	class App extends App then constructor: -> return [
		'ngRoute'
	]

	# Main Controller Class
	class Main extends Controller
		constructor: ($scope) ->
			$scope.msg = "Running"
	@!classify

Output Code

# Main Application
define [
	
], () ->
	'use strict'
	
	
	# Main Application Class
	class App then constructor: -> return [
		'ngRoute'
	]

	# Main Controller Class
	class Main
		constructor: ($scope) ->
			$scope.msg = "Running"


	angular.module('app', new App())
	.controller('mainController', ['$scope', Main])

Built With

Authors

License

This is an unlicensed project - see the LICENSE file for details

Acknowledgments

  • Solving ng-classify problem using requireJS

About

Mix ng-classify with require js and using a simple syntax

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published